Erro na execução da query! SQL: SELECT
o.ofe_tit AS titulo, o.seo_link, o.ofe_id, o.ofe_cid
FROM
ofertas o
WHERE (
SELECT
count( 1 ) / count( 1 )
FROM
ofertas_fotos
WHERE
id_oferta = o.ofe_id
)
and
o.ofe_exp > now()
and
o.apagado='N'
and
o.ofe_cid =
and
( ofe_bai like '%%')
and
o.ofe_id != 164228
ORDER BY
rand()
LIMIT 15
Erro: 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 'and
( ofe_bai like '%%')
and
o.ofe_id != 164228
ORDER BY
' at line 19 |