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