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