(sql (:insert-into 'kupci :set (:raw (if t (sql ('ime "a"))))))
The :insert-into clause expects the arguments to :set to be a multiple
of two. You'll need to use sql-compile to do this.
(sql-compile `(:insert-into 'kupci :set ,@(when t (list 'ime "a"))))