

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 `new_active` = 1 ORDER BY `new_date` desc LIMIT 10' at line 6
SELECT `c`.`cat_name`, `n`.`new_id`, `n`.`cat_id`, `new_title`, `n`.`new_date` FROM (`vinalink_newsen` as n) INNER JOIN `vinalink_catenewen` as c ON `n`.`cat_id` = `c`.`cat_id` WHERE `c`.`cat_id` IS NULL AND `n`.`new_id` != AND `new_active` = 1 ORDER BY `new_date` desc LIMIT 10