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