-

select pm.*, case when (pm.pret_promotie_pmag>0 and pm.promotie_pmag=1) then pm.pret_promotie_pmag else pm.pret_site_pmag end as pretul from (produse_magazin pm left join produse_categorii pcc on pcc.id_prod_prod_cat=pm.id_pmag) where pm.status_pmag=1 and pm.tip_pmag!=3 and pm.tre_documentat_pmag=0 and ( pm.id_pmag=11138 or pm.id_pmag=11136 or pm.id_pmag=11135 or pm.id_pmag=11134 or pm.id_pmag=11133 or pm.id_pmag=11132 or pm.id_pmag=10977 or pm.id_pmag=10975 or pm.id_pmag=14183) and pm.categorie_id_pmag='402' and pm.promotie_pmag=1 and pm.pret_promotie_pmag>0 and (pret_site_pmag>0 or tip_pmag=5) and status_pmag=1 and tip_pmag!=3 and tre_documentat_pmag=0 order by pm.promotie_pmag desc, pm.pret_promotie_pmag asc limit -10,10

[EROARE:STOP]
Ne cerem scuze pentru aceasta problema!!! In cel mai scurt timp va fi rezolvata