- You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '-10,10' at line 4

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=9965 or pm.id_pmag=9964 or pm.id_pmag=9963 or pm.id_pmag=9962 or pm.id_pmag=9961 or pm.id_pmag=9960 or pm.id_pmag=9959 or pm.id_pmag=9958 or pm.id_pmag=9957 or pm.id_pmag=9956 or pm.id_pmag=9955 or pm.id_pmag=9954 or pm.id_pmag=9953 or pm.id_pmag=9952 or pm.id_pmag=9951 or pm.id_pmag=9950 or pm.id_pmag=9949 or pm.id_pmag=9948 or pm.id_pmag=9947 or pm.id_pmag=9946 or pm.id_pmag=9945 or pm.id_pmag=9944 or pm.id_pmag=9943 or pm.id_pmag=9941 or pm.id_pmag=9940 or pm.id_pmag=9937 or pm.id_pmag=9935 or pm.id_pmag=9934 or pm.id_pmag=9933 or pm.id_pmag=9932 or pm.id_pmag=9931 or pm.id_pmag=9930 or pm.id_pmag=9929 or pm.id_pmag=9928 or pm.id_pmag=9927 or pm.id_pmag=9926 or pm.id_pmag=9925 or pm.id_pmag=9924 or pm.id_pmag=9923 or pm.id_pmag=9922 or pm.id_pmag=9921 or pm.id_pmag=9920 or pm.id_pmag=9919 or pm.id_pmag=9918 or pm.id_pmag=9917 or pm.id_pmag=9916 or pm.id_pmag=9915 or pm.id_pmag=9914 or pm.id_pmag=9913 or pm.id_pmag=9912 or pm.id_pmag=9911 or pm.id_pmag=9910 or pm.id_pmag=9909 or pm.id_pmag=9908 or pm.id_pmag=9907 or pm.id_pmag=9906 or pm.id_pmag=9905 or pm.id_pmag=9904 or pm.id_pmag=9903 or pm.id_pmag=9902 or pm.id_pmag=9901 or pm.id_pmag=9900 or pm.id_pmag=9899 or pm.id_pmag=9898 or pm.id_pmag=9897 or pm.id_pmag=9896 or pm.id_pmag=9895 or pm.id_pmag=9894 or pm.id_pmag=9893 or pm.id_pmag=9892 or pm.id_pmag=9891 or pm.id_pmag=9890 or pm.id_pmag=9889 or pm.id_pmag=9888 or pm.id_pmag=9887 or pm.id_pmag=9886 or pm.id_pmag=9885 or pm.id_pmag=9884 or pm.id_pmag=9883 or pm.id_pmag=9882 or pm.id_pmag=9879 or pm.id_pmag=9878 or pm.id_pmag=9877 or pm.id_pmag=9876 or pm.id_pmag=9875 or pm.id_pmag=9874 or pm.id_pmag=9873 or pm.id_pmag=9872 or pm.id_pmag=9871 or pm.id_pmag=9870 or pm.id_pmag=9869 or pm.id_pmag=9868 or pm.id_pmag=9867 or pm.id_pmag=9866 or pm.id_pmag=9865 or pm.id_pmag=9864 or pm.id_pmag=9863 or pm.id_pmag=9862 or pm.id_pmag=9861 or pm.id_pmag=9860 or pm.id_pmag=9859 or pm.id_pmag=9858 or pm.id_pmag=9857 or pm.id_pmag=9856 or pm.id_pmag=9855 or pm.id_pmag=9854 or pm.id_pmag=9853 or pm.id_pmag=9852 or pm.id_pmag=9851 or pm.id_pmag=9849 or pm.id_pmag=9847 or pm.id_pmag=9845 or pm.id_pmag=9844 or pm.id_pmag=9843 or pm.id_pmag=9842 or pm.id_pmag=9841 or pm.id_pmag=9840 or pm.id_pmag=9839 or pm.id_pmag=9838 or pm.id_pmag=9837 or pm.id_pmag=9836 or pm.id_pmag=9835 or pm.id_pmag=9834 or pm.id_pmag=9833 or pm.id_pmag=9832 or pm.id_pmag=9831 or pm.id_pmag=9830 or pm.id_pmag=9829 or pm.id_pmag=9828 or pm.id_pmag=9827 or pm.id_pmag=9826 or pm.id_pmag=9825 or pm.id_pmag=9824 or pm.id_pmag=9823 or pm.id_pmag=9822 or pm.id_pmag=9821 or pm.id_pmag=9820 or pm.id_pmag=9819 or pm.id_pmag=9818 or pm.id_pmag=9817 or pm.id_pmag=9816 or pm.id_pmag=9815 or pm.id_pmag=9814 or pm.id_pmag=9813 or pm.id_pmag=9812 or pm.id_pmag=9811 or pm.id_pmag=9810 or pm.id_pmag=9809 or pm.id_pmag=9808 or pm.id_pmag=9806 or pm.id_pmag=9805 or pm.id_pmag=9804 or pm.id_pmag=9803 or pm.id_pmag=9802 or pm.id_pmag=9801 or pm.id_pmag=9799 or pm.id_pmag=9798 or pm.id_pmag=9796 or pm.id_pmag=9791 or pm.id_pmag=9789 or pm.id_pmag=9788 or pm.id_pmag=9781 or pm.id_pmag=9780 or pm.id_pmag=9779 or pm.id_pmag=9778 or pm.id_pmag=9777 or pm.id_pmag=9776 or pm.id_pmag=9775 or pm.id_pmag=9774 or pm.id_pmag=9773 or pm.id_pmag=9772 or pm.id_pmag=9771 or pm.id_pmag=9770 or pm.id_pmag=9769 or pm.id_pmag=9768 or pm.id_pmag=9767 or pm.id_pmag=9766 or pm.id_pmag=9765 or pm.id_pmag=9764 or pm.id_pmag=9763 or pm.id_pmag=9762 or pm.id_pmag=9761 or pm.id_pmag=9760 or pm.id_pmag=9759 or pm.id_pmag=9758 or pm.id_pmag=9757 or pm.id_pmag=9756 or pm.id_pmag=9755 or pm.id_pmag=9754 or pm.id_pmag=9753 or pm.id_pmag=9752 or pm.id_pmag=9751 or pm.id_pmag=9750 or pm.id_pmag=9749 or pm.id_pmag=9748 or pm.id_pmag=9747 or pm.id_pmag=9746 or pm.id_pmag=9745 or pm.id_pmag=9744 or pm.id_pmag=9743 or pm.id_pmag=9742 or pm.id_pmag=9741 or pm.id_pmag=9740 or pm.id_pmag=9739 or pm.id_pmag=9738 or pm.id_pmag=9737 or pm.id_pmag=9736 or pm.id_pmag=9735 or pm.id_pmag=9734 or pm.id_pmag=9733 or pm.id_pmag=9732 or pm.id_pmag=14185) and pm.categorie_id_pmag='399' 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

Ne cerem scuze pentru aceasta problema!!! In cel mai scurt timp va fi rezolvata