Error: SELECT ID, NomePT as Nome, DescricaoPT as Descricao, Activo FROM produtos WHERE Categoria = 58 and Activo = 'Y' and Aprovado = 'Y' and ((Virtual <> 1) or (Virtual = 1 and ContaSubs > 0)) ORDER BY ID ASC LIMIT 0,9

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 'Virtual <> 1) or (Virtual = 1 and ContaSubs > 0)) ORDER BY ID ASC LIMIT 0,9' at line 1