SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "and" LINE 1: ...elect id, qtd_atual, lote from wmc_ue where id = and status... ^