SQL Error: 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 ' at line 12 at /home/www/acl/application/classes/modules/topic/mapper/Topic.mapper.class.php line 1302
Array ( [code] => 1064 [message] => 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 ' at line 12 [query] => SELECT SQL_CALC_FOUND_ROWS DISTINCT t.topic_id, t.topic_biblio_id, t.topic_rating, t.topic_date_publish,t.topic_completes,v.topic_count_read,t.topic_count_comment,t.topic_duration FROM prefix_topic as t JOIN prefix_topic_view as v ON t.topic_id=v.topic_id WHERE t.topic_publish = 1 AND t.topic_date_publish <= '2024-12-21 21:27:49' AND ( ) ORDER BY CASE WHEN t.topic_biblio_id IS NULL THEN 0 ELSE 1 END, t.topic_date_publish desc LIMIT 0, 6 [context] => /home/www/acl/application/classes/modules/topic/mapper/Topic.mapper.class.php line 1302 )