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