"SELECT `photo`.`id` FROM `photo` , `like` WHERE `photo`.`id` = `like`.`photo_id` AND `like`.`user_id` = $user_id"