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