I use Yii to query:
return Yii::app()->db ->createCommand('SELECT `fio` FROM `users` WHERE `ID` = "12"') ->execute(); Instead of the name, it returns the unit, that is, the number of lines. Tried different options - always returns count(fio) .
execute()usequeryRow()orqueryAll(). Thank you all :) - Boeny