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