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