חיפוש עבודה אבטחת איכות

Error

SQL ERROR:
LINK 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 '-20, 20' at line 22
SQL: SELECT `mida_jobs`.`idn`, `mida_jobs`.`name`, `description`, `mida_categories`.`name` As `cat_name`, `mida_sub_categories`.`name` As `sub_name`, `mida_areas`.`name` As `area_name` FROM `mida_jobs` LEFT JOIN `mida_categories` ON `mida_jobs`.`category` = `mida_categories`.`idn` LEFT JOIN `mida_sub_categories` ON `mida_jobs`.`sub_category` = `mida_sub_categories`.`idn` LEFT JOIN `mida_areas` ON `mida_jobs`.`work_area` = `mida_areas`.`idn` WHERE 1 AND `mida_jobs`.`category`=3600 AND ( `mida_jobs`.`name` LIKE '%%' OR `mida_jobs`.`description` LIKE '%%' OR `mida_jobs`.`id` LIKE '%%' OR `mida_jobs`.`idn` LIKE '%%' ) GROUP BY `mida_jobs`.`idn` ORDER BY `idn` Desc LIMIT -20, 20
RESULT:

Backtrace

  1. D:\HostingSpaces\maof3\executive-israel.co.il\wwwroot\index.php:101
    require(["D:\\HostingSpaces\\maof1\\maof_repository\\index.inc"])
  2. D:\HostingSpaces\maof1\maof_repository\index.inc:33
    require(["D:\\HostingSpaces\\maof1\\maof_repository\\search.inc"])
  3. D:\HostingSpaces\maof1\maof_repository\search.inc:240
    require(["D:\\HostingSpaces\\maof1\\maof_repository\\sections\\search\\results.inc"])
  4. D:\HostingSpaces\maof1\maof_repository\sections\search\results.inc:130
    db->query_object(["SELECT \n\t\t\t\t`mida_jobs`.`idn`,\n\t\t\t\t`mida_jobs`.`name`,\n\t\t\t\t`description`,\n\t\t\t\t`mida_categories`.`name` \t\tAs `cat_name`,\n\t\t\t\t`mida_sub_categories`.`name` As `sub_name`,\n\t\t\t\t`mida_areas`.`name` \t\t\tAs `area_name`\n\t\t\tFROM\n\t\t\t\t`mida_jobs`\n\t\t\tLEFT JOIN `mida_categories` \tON `mida_jobs`.`category` \t= `mida_categories`.`idn`\n\t\t\tLEFT JOIN `mida_sub_categories`\tON `mida_jobs`.`sub_category` = `mida_sub_categories`.`idn`\n\t\t\tLEFT JOIN `mida_areas` \t\t\tON `mida_jobs`.`work_area` \t\t= `mida_areas`.`idn`\n\t\t\tWHERE \n\t\t\t\t1 AND `mida_jobs`.`category`=3600 AND (\n\t\t\t\t\t\t\t`mida_jobs`.`name` LIKE '%