Unknown column 'public' in 'where clause': SELECT * FROM reservas WHERE propiedad_fk = public and session_id = "plal0hdbqn2b7fht1c29u1f2t7"