Hmmm, the %s used in the date format is conflicting with the %s used to insert the variable into the sprintf function.
Is it absolutely necessary to format the date in the recordset? you could use the PHP date function to format the date displayed on the page:
<?php echo date("g:m:i a", strtotime($row_recordsetName['ColumnName'])); ?>
this way you wont need the date format function in the SQL and can work around the sprintf conflict.
see the php manual page for more details on gormating the date using PHP:
http://www.php.net/manual/en/function.date.php