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