Warning: mysqli_query(): (08S01/1053): Server shutdown in progress in /home/www/iss1/market2/ds_engine/lib/mdb.class.php on line 53
Невозможно выполнить запрос к БД: Server shutdown in progress
Query: SELECT
ap.id as 'part_id',
ap.subject as 'name',
ap.price as 'price',
ap.amount as 'amount',
IF(ap.art='Articul0','',ap.art) as 'art',
ap.preview as 'image',
ap.salon_id as 'firm_id',
c1.id as 'model_id',
c1.name as 'model',
c1.global as 'model_global',
c1.url as 'model_url',
c2.id as 'mark_id',
c2.name as 'mark',
c2.url as 'mark_url',
c3.name as 'group',
c3.url as 'group_url',
ap.images_dir as 'images_dir',
ap.images_files as 'images',
ap.fid as 'fid',
ap.active as 'deleted',
IF(ap.feed=1,0,1) as 'no_avito',
0 as 'no_drom',
1 as 'avito_status',
ap.cashback as 'cback',
ap.images_links as 'images_links'
FROM
`autoparts` ap
INNER JOIN
`autoparts_models` am ON ap.id = am.autopart_id
INNER JOIN
`categories_models` c1 ON am.model_id = c1.id
INNER JOIN
`categories_marks` c2 ON ap.mark_id = c2.id
INNER JOIN
`categories_groups` c3 ON ap.group_id = c3.id
WHERE
ap.id!='3079445' AND c2.url = 'toyota' AND c1.url = 'land-cruiser-100-1998-2007' AND c3.url = 'kardannii-val-zadnii' AND
ap.salon_id IN (292320) AND ap.active = 1 AND ap.drom = 1 AND ap.fp=0 AND ap.model_id IS NOT NULL AND ap.mark_id IS NOT NULL AND ap.group_id IS NOT NULL
GROUP BY
1
ORDER BY
ap.id DESC,
ap.price ASC,
ap.subject ASC
LIMIT
0,24