•  
Городской информационно-справочный сайт Еманжелинска / ПРОФЕССИОНАЛЬНАЯ РАЗРАБОТКА САЙТОВ В ЕМАНЖЕЛИНСКЕ / Наш телефон 8-912-899-000-9

SELECT DISTINCT a.*, p.name as parent, p.id as parentid, c.name as cat, c.id as catid, u.username as user FROM #__adsmanager_ads as a LEFT JOIN #__adsmanager_adcat as adcat ON adcat.adid = a.id LEFT JOIN #__users as u ON a.userid = u.id LEFT JOIN #__adsmanager_categories as c ON adcat.catid = c.id LEFT JOIN #__adsmanager_categories as p ON c.parent = p.id WHERE a.id=466551 and adcat.catid = 66 and c.published LIMIT 1

$row->ad_headline

$row->ad_text
Цена: $row->ad_price
Контакты:
$row->name
$row->ad_phone
$row->ad_city
E-Mail: $row->email
nopic