YOU HAVE AN ERROR IN YOUR SQL SYNTAX; CHECK THE MANUAL THAT CORRESPONDS TO YOUR MYSQL SERVER VERSION FOR THE RIGHT SYNTAX TO USE NEAR 'OR CATEGORY.VIRTUEMART_CATEGORY_ID = 2 OR CATEGORY.VIRTUEMART_CATEGORY_ID = 18 O' AT LINE 39
I found that when i remove category_id field the site wont crash. All categories are already created in the site, so the IDs are copy-pasted from there. Products have multiple categories each. Please have a look at the attached file.
Could you understand what is causing the crash?