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