SELECT id,marque,site,isable,ise,ghost,url,nom_uk,alt,couleur_uk couleur,essentiel_uk txt,prix,promo,prixo,CASE WHEN isable!=0 THEN photo WHEN wi1!=2 AND photo1_2!="" THEN photo1_2 WHEN wi1!=4 AND photo1_4!="" THEN photo1_4 ELSE photo END photo, photo2,photo1_2, produit,num FROM produit_couleur WHERE prix!="0.00" AND affich=1 AND photo2!="" AND volume!=4 AND produit IN(0,7771,9275,9270,6259,9289,9404,9525,9230,9366,9365,9369,5190,9276,9278,9268,7916,6947,7212,9161,6449,4626,7456,6454,7457,7647,6443,7868,7648,7492,7469,7462,6655,7459,6944,7803,6899,9136,6922,6932,6894,8483,7889) AND produit NOT IN( ) AND ( id=7484 OR id=6648 OR id=6863 OR id=14879 OR id=14857 OR id=14861 OR id=15852 OR id=15854 OR id=15731 OR id=16843 OR id=17215 OR id=17214 OR id=17209 OR id=16814 OR id=16649 OR id=16639 OR id=16644 OR id=15744 OR id=15728 OR id=15717 OR id=15682 OR id=15674 OR id=15660 OR id=15658 OR id=15652 OR id=15637 OR id=15635 OR id=15633 OR id=15607 OR id=15603 OR id=15598 OR id=15596 OR id=15592 OR id=15590 OR id=15427 OR id=15419 OR id=15520 OR id=15495 OR id=15425 OR id=15422 OR id=15415 OR id=14930 OR id=14867 OR id=14854 OR id=14252 OR id=14162 OR id=14704 OR id=14549 OR id=14415 OR id=14461 OR id=14401 OR id=14418 OR id=14403 OR id=14451 OR id=14421 OR id=14396 OR id=14268 OR id=14264 OR id=13994 OR id=13946 OR id=12926 OR id=12525 OR id=12384 OR id=11632 OR id=11643 OR id=11621 OR id=11656 OR id=10531 OR id=10395 OR id=7467 OR id=6847 OR id=6661 OR id=4467 )ORDER BY CASE produit WHEN 7771 THEN (num*0.2)+1 WHEN 9275 THEN (num*0.2)+2 WHEN 9270 THEN (num*0.2)+3 WHEN 6259 THEN (num*0.2)+4 WHEN 9289 THEN (num*0.2)+5 WHEN 9404 THEN (num*0.2)+6 WHEN 9525 THEN (num*0.2)+7 WHEN 9230 THEN (num*0.2)+8 WHEN 9366 THEN (num*0.2)+9 WHEN 9365 THEN (num*0.2)+10 WHEN 9369 THEN (num*0.2)+11 WHEN 5190 THEN (num*0.2)+12 WHEN 9276 THEN (num*0.2)+13 WHEN 9278 THEN (num*0.2)+14 WHEN 9268 THEN (num*0.2)+15 WHEN 7916 THEN (num*0.2)+16 WHEN 6947 THEN (num*0.2)+17 WHEN 7212 THEN (num*0.2)+18 WHEN 9161 THEN (num*0.2)+19 WHEN 6449 THEN (num*0.2)+20 WHEN 4626 THEN (num*0.2)+21 WHEN 7456 THEN (num*0.2)+22 WHEN 6454 THEN (num*0.2)+23 WHEN 7457 THEN (num*0.2)+24 WHEN 7647 THEN (num*0.2)+25 WHEN 6443 THEN (num*0.2)+26 WHEN 7868 THEN (num*0.2)+27 WHEN 7648 THEN (num*0.2)+28 WHEN 7492 THEN (num*0.2)+29 WHEN 7469 THEN (num*0.2)+30 WHEN 7462 THEN (num*0.2)+31 WHEN 6655 THEN (num*0.2)+32 WHEN 7459 THEN (num*0.2)+33 WHEN 6944 THEN (num*0.2)+34 WHEN 7803 THEN (num*0.2)+35 WHEN 6899 THEN (num*0.2)+36 WHEN 9136 THEN (num*0.2)+37 WHEN 6922 THEN (num*0.2)+38 WHEN 6932 THEN (num*0.2)+39 WHEN 6894 THEN (num*0.2)+40 WHEN 8483 THEN (num*0.2)+41 WHEN 7889 THEN (num*0.2)+42 END,numErr153a