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 '' at line 1]
SELECT id FROM cms_staff_pictures WHERE parent_type = 'Person' AND parent_id =

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 'AND module = 'staff' ORDER BY field_id ASC' at line 4]
SELECT * FROM cms_custom_field_values WHERE parent_id = AND module = 'staff' ORDER BY field_id ASC