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