Lỗi cơ sở dữ liệu.

Error Number: 1064

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 ') AND `pr`.`trash` = 0 AND `pr`.`highlight` = 1 GROUP BY `att`.`modulesid` ' at line 4

SELECT `pr`.`id`, `pr`.`title`, `pr`.`slug`, `pr`.`canonical`, `pr`.`images`, `pr`.`description` FROM `catalogues_relationship` as `att` INNER JOIN `articles` as `pr` WHERE `pr`.`lang` = 'vi' AND `pr`.`trash` = 0 AND `pr`.`publish` = 1 AND `att`.`modules` = 'articles' AND `att`.`modulesid` = `pr`.`id` AND (`att`.`cataloguesid` = ) AND `pr`.`trash` = 0 AND `pr`.`highlight` = 1 GROUP BY `att`.`modulesid` ORDER BY `pr`.`order` asc, `pr`.`id` desc LIMIT 7

Filename: core/FC_Model.php

Line Number: 303