SELECT DISTINCT(P.ModeloDescricao) as ds,IFNULL(P.ModeloDescricao,rand()) as unq_ancestor,P.*,I.*,C.category_name FROM prod_categories as C, prod_products AS P, prod_images AS I, prod_products_categories AS PC WHERE I.is_main=1 AND P.status=1Array and P.product_sku = I.product_sku and P.product_sku = PC.product_sku and C.category_id = PC.category_id and C.category_parent = PC.category_parent and C.category_id != 6 and C.category_parent != 6 GROUP BY unq_ancestor ORDER BY P.sale_price DESC, RAND()
Unknown column '1Array' in 'where clause'