1054 - Unknown column '6398_5640_5499' in 'where clause'
select MAX(p.products_price) as max_price, MIN(p.products_price) as min_price from products p where p.products_id in (select p2c.products_id from products_to_categories p2c where p2c.categories_id in (5173,4445,4446,4447,4448,4454,5175,5176,5177,5178,5179,5180,5181,5186,5187,5188,5189,5190,5191,5192,5193,5194,5195,5196,5198,5200,5202,5204,5205,5470,5407,5408,5409,5410,5413,5414,5415,5416,5417,5418,5640,5491,5492,5493,5494,5495,5496,5497,5498,5499,5500,5501,6734,6025,6026,6028,6369,6778,6779,6780,6781,6782,6783,6798,6799,6800,6801,6802,6803,8721,7811,7813,7814,7815,7816,7817,7818,7819,6398_5640_5499)) and p.products_status = '1' and p.products_free_gift_status = '0' and p.products_third_party_status = '0' and (p.products_date_available < now() or p.products_date_available IS NULL)