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