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