Guest User

Untitled

a guest
Jul 16th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.60 KB | None | 0 0
  1. SELECT  `q1`.`id`, `q1`.`date_dec`, `q1`.`operation`, `q1`.`estate_type`, `q1`.`rooms`, `q1`.`floor`,
  2.         `q1`.`square_all`, `q1`.`square_live`, `q1`.`square_k`, `q1`.`wall`, `q1`.`street`, `q1`.`area_of_kerch`,
  3.         `q1`.`house`, `q1`.`year`, `q1`.`price`, `q1`.`price_currency`, `q1`.`price_comment`, `q1`.`photo`,
  4.         `q1`.`publication`, `q1`.`zem_uch`, `q1`.`target`, `q1`.`name_object`, `q1`.`comment`,`q1`.`contacts`,
  5.         `q2`.`photo_name`
  6. FROM `table_main` AS `q1`
  7. LEFT JOIN `photo` AS `q2` ON `q1`.`id` = `q2`.`id`
  8. WHERE `q1`.`operation`='".$mo."'
  9. AND `q1`.`estate_type`='".$mr."'
Add Comment
Please, Sign In to add comment