- 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=10357 or pm.id_pmag=10356 or pm.id_pmag=10355 or pm.id_pmag=10354 or pm.id_pmag=10353 or pm.id_pmag=10352 or pm.id_pmag=10350 or pm.id_pmag=10351 or pm.id_pmag=10349 or pm.id_pmag=10348 or pm.id_pmag=10347 or pm.id_pmag=10345 or pm.id_pmag=10346 or pm.id_pmag=10344 or pm.id_pmag=10343 or pm.id_pmag=10342 or pm.id_pmag=10341 or pm.id_pmag=10340 or pm.id_pmag=10339 or pm.id_pmag=10338 or pm.id_pmag=10337 or pm.id_pmag=10336 or pm.id_pmag=10335 or pm.id_pmag=10334 or pm.id_pmag=10333 or pm.id_pmag=10332 or pm.id_pmag=10331 or pm.id_pmag=10330 or pm.id_pmag=10329 or pm.id_pmag=10328 or pm.id_pmag=10326 or pm.id_pmag=10327 or pm.id_pmag=10325 or pm.id_pmag=10324 or pm.id_pmag=10323 or pm.id_pmag=10322 or pm.id_pmag=10321 or pm.id_pmag=10320 or pm.id_pmag=10319 or pm.id_pmag=10318 or pm.id_pmag=10317 or pm.id_pmag=10316 or pm.id_pmag=10315 or pm.id_pmag=10314 or pm.id_pmag=10313 or pm.id_pmag=10312 or pm.id_pmag=10311 or pm.id_pmag=10310 or pm.id_pmag=10309 or pm.id_pmag=10308 or pm.id_pmag=10307 or pm.id_pmag=10306 or pm.id_pmag=10305 or pm.id_pmag=10304 or pm.id_pmag=10303 or pm.id_pmag=10302 or pm.id_pmag=10301 or pm.id_pmag=10300 or pm.id_pmag=10299 or pm.id_pmag=10298 or pm.id_pmag=10297 or pm.id_pmag=10296 or pm.id_pmag=10295 or pm.id_pmag=10294 or pm.id_pmag=10293 or pm.id_pmag=10292 or pm.id_pmag=10291 or pm.id_pmag=10290 or pm.id_pmag=10289 or pm.id_pmag=10288 or pm.id_pmag=10287 or pm.id_pmag=10286 or pm.id_pmag=10285 or pm.id_pmag=10284 or pm.id_pmag=10283 or pm.id_pmag=10282 or pm.id_pmag=10281 or pm.id_pmag=10280 or pm.id_pmag=10279 or pm.id_pmag=10278 or pm.id_pmag=10277 or pm.id_pmag=10276 or pm.id_pmag=10275 or pm.id_pmag=10274 or pm.id_pmag=10273 or pm.id_pmag=10272 or pm.id_pmag=10271 or pm.id_pmag=10270 or pm.id_pmag=10269 or pm.id_pmag=10268 or pm.id_pmag=10267 or pm.id_pmag=10266 or pm.id_pmag=10265 or pm.id_pmag=10264 or pm.id_pmag=10263 or pm.id_pmag=10262 or pm.id_pmag=10261 or pm.id_pmag=10260 or pm.id_pmag=10259 or pm.id_pmag=10258 or pm.id_pmag=10257 or pm.id_pmag=10256 or pm.id_pmag=10255 or pm.id_pmag=10254 or pm.id_pmag=10253 or pm.id_pmag=10252 or pm.id_pmag=10251 or pm.id_pmag=10250 or pm.id_pmag=10249 or pm.id_pmag=10248 or pm.id_pmag=10247 or pm.id_pmag=10246 or pm.id_pmag=10245 or pm.id_pmag=10244 or pm.id_pmag=10243 or pm.id_pmag=10242 or pm.id_pmag=10241 or pm.id_pmag=10240 or pm.id_pmag=10239 or pm.id_pmag=10238 or pm.id_pmag=10237 or pm.id_pmag=10236 or pm.id_pmag=10235 or pm.id_pmag=10234 or pm.id_pmag=10233 or pm.id_pmag=10232 or pm.id_pmag=10231 or pm.id_pmag=10230 or pm.id_pmag=10229 or pm.id_pmag=10228 or pm.id_pmag=10226 or pm.id_pmag=10227 or pm.id_pmag=10225 or pm.id_pmag=10224 or pm.id_pmag=10223 or pm.id_pmag=10222 or pm.id_pmag=10221 or pm.id_pmag=10220 or pm.id_pmag=10219 or pm.id_pmag=10218 or pm.id_pmag=10217 or pm.id_pmag=10216 or pm.id_pmag=10215 or pm.id_pmag=10214 or pm.id_pmag=10213 or pm.id_pmag=10212 or pm.id_pmag=10211 or pm.id_pmag=10210 or pm.id_pmag=10209 or pm.id_pmag=10208 or pm.id_pmag=10207 or pm.id_pmag=10206 or pm.id_pmag=10205 or pm.id_pmag=10204 or pm.id_pmag=10203 or pm.id_pmag=10202 or pm.id_pmag=10201 or pm.id_pmag=10200 or pm.id_pmag=10199 or pm.id_pmag=10198 or pm.id_pmag=10197 or pm.id_pmag=10196 or pm.id_pmag=10195 or pm.id_pmag=10194 or pm.id_pmag=10192 or pm.id_pmag=10193 or pm.id_pmag=10191 or pm.id_pmag=10190 or pm.id_pmag=10189 or pm.id_pmag=10188 or pm.id_pmag=10187 or pm.id_pmag=10186 or pm.id_pmag=10185 or pm.id_pmag=10184 or pm.id_pmag=10183 or pm.id_pmag=10182 or pm.id_pmag=10181 or pm.id_pmag=10180 or pm.id_pmag=10179 or pm.id_pmag=10178 or pm.id_pmag=10177 or pm.id_pmag=10176 or pm.id_pmag=10175 or pm.id_pmag=10174 or pm.id_pmag=10173 or pm.id_pmag=10172 or pm.id_pmag=10171 or pm.id_pmag=10170 or pm.id_pmag=10169 or pm.id_pmag=10167 or pm.id_pmag=10168 or pm.id_pmag=10166 or pm.id_pmag=10151 or pm.id_pmag=10148 or pm.id_pmag=10146 or pm.id_pmag=10145 or pm.id_pmag=10141 or pm.id_pmag=10137 or pm.id_pmag=10135 or pm.id_pmag=10134 or pm.id_pmag=10133 or pm.id_pmag=10132 or pm.id_pmag=10131 or pm.id_pmag=10130 or pm.id_pmag=10129 or pm.id_pmag=10127 or pm.id_pmag=10126 or pm.id_pmag=10125 or pm.id_pmag=10124 or pm.id_pmag=10123 or pm.id_pmag=10122 or pm.id_pmag=10121 or pm.id_pmag=10120 or pm.id_pmag=10119 or pm.id_pmag=10118 or pm.id_pmag=10117 or pm.id_pmag=10116 or pm.id_pmag=10108 or pm.id_pmag=10106 or pm.id_pmag=10105 or pm.id_pmag=10104 or pm.id_pmag=10103 or pm.id_pmag=10095 or pm.id_pmag=10089 or pm.id_pmag=10088 or pm.id_pmag=10087 or pm.id_pmag=10084 or pm.id_pmag=10077 or pm.id_pmag=10065 or pm.id_pmag=10064 or pm.id_pmag=10063 or pm.id_pmag=10062 or pm.id_pmag=10061 or pm.id_pmag=10060 or pm.id_pmag=10059 or pm.id_pmag=10058 or pm.id_pmag=10057 or pm.id_pmag=10056 or pm.id_pmag=10055 or pm.id_pmag=10049 or pm.id_pmag=10048 or pm.id_pmag=10047 or pm.id_pmag=10038 or pm.id_pmag=10037 or pm.id_pmag=10034 or pm.id_pmag=10033 or pm.id_pmag=10032 or pm.id_pmag=10031 or pm.id_pmag=10030 or pm.id_pmag=10029 or pm.id_pmag=10028 or pm.id_pmag=10027 or pm.id_pmag=10026 or pm.id_pmag=10015 or pm.id_pmag=10014 or pm.id_pmag=10013 or pm.id_pmag=10012 or pm.id_pmag=10011 or pm.id_pmag=10010 or pm.id_pmag=10009 or pm.id_pmag=9984 or pm.id_pmag=9982 or pm.id_pmag=9981 or pm.id_pmag=9980 or pm.id_pmag=9979 or pm.id_pmag=9978 or pm.id_pmag=9977 or pm.id_pmag=9976 or pm.id_pmag=9975 or pm.id_pmag=9974 or pm.id_pmag=9973 or pm.id_pmag=9972 or pm.id_pmag=9971 or pm.id_pmag=9970 or pm.id_pmag=9967 or pm.id_pmag=9966 or pm.id_pmag=13175 or pm.id_pmag=13176 or pm.id_pmag=13180 or pm.id_pmag=13188 or pm.id_pmag=13189 or pm.id_pmag=13190 or pm.id_pmag=13192 or pm.id_pmag=13193) and pm.categorie_id_pmag='398' 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