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