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