Oops! Query failed! Tried to execute: SELECT materials.*, materials_i18n.* FROM materials LEFT JOIN materials_i18n ON materials.id = materials_i18n.i18n_foreign_key AND materials_i18n.i18n_locale = 'bg-BG' WHERE author_id = ORDER BY date_time DESC The SQL server said: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ORDER BY date_time DESC' at line 3.
The error occurred on line 87 of /home/franchis/www/www/core/MagMySqli.php

#0  MagException->report() called at [/home/franchis/www/www/core/MagMySqli.php:110]
#1  MagMySqli->query(SELECT materials.*, materials_i18n.* FROM materials LEFT JOIN materials_i18n
 	 	 					ON materials.id = materials_i18n.i18n_foreign_key
 	 	 					AND materials_i18n.i18n_locale = 'bg-BG' WHERE author_id =  ORDER BY date_time DESC ) called at [/home/franchis/www/www/core/ActiveRecord.php:1328]
#2  ActiveRecord->query(SELECT materials.*, materials_i18n.* FROM materials LEFT JOIN materials_i18n
 	 	 					ON materials.id = materials_i18n.i18n_foreign_key
 	 	 					AND materials_i18n.i18n_locale = 'bg-BG' WHERE author_id =  ORDER BY date_time DESC ) called at [/home/franchis/www/www/core/ActiveRecord.php:1575]
#3  ActiveRecord->find_all(author_id = , date_time DESC, ) called at [/home/franchis/www/www/controllers/authors_controller.php:17]
#4  AuthorsController->read(Array ([id] => ������������-������������)) called at [/home/franchis/www/www/core/BaseController.php:741]
#5  BaseController->process_route() called at [/home/franchis/www/www/public/dispatch.php:42]