getData: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 '(Tendor.publish_date <= now())) ORDER BY `Tendor`.`tender_close` DESC LIMIT 0' at line 4 SQL=SELECT SQL_CALC_FOUND_ROWS DISTINCT `Tendor`.`id` AS slug , `Tendor`.`id` AS `__pk_val` FROM `Tendor` (Tendor.publish_date <= now())) ORDER BY `Tendor`.`tender_close` DESC LIMIT 0, 10