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