Boothbay Harbor Town Seal

Something Went Wrong!

Drats! Your query bought the farm:
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 '-1' at line 6
SELECT documents.documents_id AS `documents_id`, documents.departments_id AS `departments_id`, documents.boards_and_committees_id AS `boards_and_committees_id`, documents.document_types_id AS `document_types_id`, documents.pages_id AS `pages_id`, documents.keywords AS `keywords`, documents.title AS `title`, documents.pdf_file AS `pdf_file`, documents.file_url AS `file_url`, documents.vimeo_url AS `vimeo_url`, documents.date AS `date`, documents.description AS `description`, documents.complete_text AS `complete_text`, documents.last_modified AS `last_modified`, documents.last_updated_by AS `last_updated_by`, documents.slug AS `slug`, departments.departments_id AS `departments_departments_id`, departments.name AS `departments_name`, departments.description AS `departments_description`, departments.cover_image AS `departments_cover_image`, departments.slug AS `departments_slug`, boards_and_committees.boards_and_committees_id AS `boards_and_committees_boards_and_committees_id`, boards_and_committees.name AS `boards_and_committees_name`, boards_and_committees.number_of_seats AS `boards_and_committees_number_of_seats`, boards_and_committees.description AS `boards_and_committees_description`, boards_and_committees.slug AS `boards_and_committees_slug`, document_types.document_types_id AS `document_types_document_types_id`, document_types.name AS `document_types_name`, document_types.icon_file AS `document_types_icon_file`, document_types.slug AS `document_types_slug`, pages.pages_id AS `pages_pages_id`, pages.parent AS `pages_parent`, pages.departments_id AS `pages_departments_id`, pages.title AS `pages_title`, pages.content AS `pages_content`, pages.last_modified AS `pages_last_modified`, pages.slug AS `pages_slug` FROM documents LEFT OUTER JOIN departments ON documents.departments_id = departments.departments_id LEFT OUTER JOIN boards_and_committees ON documents.boards_and_committees_id = boards_and_committees.boards_and_committees_id LEFT OUTER JOIN document_types ON documents.document_types_id = document_types.document_types_id LEFT OUTER JOIN pages ON documents.pages_id = pages.pages_id ORDER BY documents.date DESC LIMIT 21 OFFSET -1