{"id":6843127,"date":"2015-12-12T13:51:45","date_gmt":"2015-12-12T13:51:45","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/error-sql-syntax\/"},"modified":"2016-08-30T21:15:44","modified_gmt":"2016-08-30T21:15:44","slug":"error-sql-syntax","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/error-sql-syntax\/","title":{"rendered":"Error SQL syntax"},"content":{"rendered":"<p>Hello, I have a problem with the display of the first image inserted in the gallery.<\/p>\n<p>I get a <strong>SQL syntax error<\/strong> which I reproduce below:<br \/>\n<em><br \/>\nWordPress database 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 &#8216;-1, 1&#8217; at line 3 for the query<br \/>\nSELECT id<br \/>\nFROM wp_contest_gal1ery<br \/>\nWHERE GalleryID = 4 AND Active = 1 ORDER BY rowid desc LIMIT -1, 1<\/em><\/p>\n<p>Someone would know help me sisolvere this problem.<br \/>\nIt occurs only in the first image of each gallery.<\/p>\n<p>Thank you<\/p>\n<p>https:\/\/wordpress.org\/plugins\/contest-gallery\/<\/p>\n","protected":false},"template":"","class_list":["post-6843127","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6843127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6843127\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6843127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}