...OUTER LEFT JOIN `photos` ON (`t3_through`.`photo_id` = `t3`.`id`) AND (`t3`.`type` = 2 OR `t3`.`type` = NULL)...
It looks like you're new here. If you want to get involved, click one of these buttons!