Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT `q1`.`id`, `q1`.`date_dec`, `q1`.`operation`, `q1`.`estate_type`, `q1`.`rooms`, `q1`.`floor`,
- `q1`.`square_all`, `q1`.`square_live`, `q1`.`square_k`, `q1`.`wall`, `q1`.`street`, `q1`.`area_of_kerch`,
- `q1`.`house`, `q1`.`year`, `q1`.`price`, `q1`.`price_currency`, `q1`.`price_comment`, `q1`.`photo`,
- `q1`.`publication`, `q1`.`zem_uch`, `q1`.`target`, `q1`.`name_object`, `q1`.`comment`,`q1`.`contacts`,
- `q2`.`photo_name`
- FROM `table_main` AS `q1`
- LEFT JOIN `photo` AS `q2` ON `q1`.`id` = `q2`.`id`
- WHERE `q1`.`operation`='".$mo."'
- AND `q1`.`estate_type`='".$mr."'
Add Comment
Please, Sign In to add comment