mysql_query("SELECT SQL_CALC_FOUND_ROWS * FROM `sold` LIMIT $startIndex, $countView")
правильно будет выглядеть в RedBeanPHP R::findAll
? Помогите пожалуйста $items = R::find('sold', 'ORDER BY id DESC LIMIT ?, ? ', [ $startIndex * $countView, $countView ]);