Database Error; SQL: SELECT
DISTINCT
`t`.*
FROM `wp_iti_pods_photos` AS `t`
LEFT JOIN `wp_iti_podsrel` AS `rel_photographer` ON
`rel_photographer`.`field_id` = 3912
AND `rel_photographer`.`item_id` = `t`.`id`
LEFT JOIN `wp_iti_pods_photographers` AS `photographer` ON
`photographer`.`id` = `rel_photographer`.`related_item_id`
WHERE ( `photographer`.`id` = )
ORDER BY `t`.`displayorder` ASC, `t`.`name`, `t`.`id`; Response: 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 ')
ORDER BY `t`.`displayorder` ' at line 13