function SelectPosts() { $temp = BSC_posts::Get(" AND IsActive='YES'" . dataReader::makeOrder()); echo dataReader::getJsonData($temp->fetchAll(), $temp->rowCount(), $_GET["callback"]); die; }