Bad query: sql_get_items_by_type -
SELECT a.artist_id AS artist_id, CONCAT(firstname, ' ', lastname) AS artist_name, i.item_id AS item_id, title, year, year_modifier, assoc, medium, comment, description, height, width, signed, sold, img_id, img_filename, item_type, price, stock_num
FROM artists AS a, items AS i, images AS p
WHERE item_type = 'painting'
AND live = 'y'
AND artist_page_only IS NULL
AND a.artist_id = i.artist_id
AND p.item_id = i.item_id
AND primary_image IS NOT NULL
ORDER BY display_order ASC
LIMIT -15, 45
. 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 '-15, 45' at line 14