sprintf(): Too few arguments. why?

sprintf(): Too few arguments...why??you have % in one of the variables!?example:$Consulta sprintf

sprintf(): Too few arguments... why??

you have % in one of the variables!

?

example:

$Consulta = sprintf ("UPDATE info_table SET title = '%s, alt = '%s', abstract = '%s', WHERE ref = '%s';", $title, $alt, $abstract, $ref);???? //error

?

$Consulta = sprintf ("UPDATE info_table SET title = '%s', alt = '%s', abstract = '%s', WHERE ref = '%s';", $title, $alt, $abstract, $ref);???? //right

?