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