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