SELECT * FROM photos,photo_sections WHERE photo_section_id=ps_id AND ps_comp_id='56' AND photo_comp_id='56' GROUP BY photo_id ORDER BY photo_timestamp DESC
Disk full (/var/tmp/#sql_7aac_11); waiting for someone to free some space...