Notice: Undefined index: UsersSession in /home/ustudysa/public_html/Private/SharedModel/AssetsFunction.php on line 370

Notice: Undefined variable: out in /home/ustudysa/public_html/Private/SharedModel/AssetsFunction.php on line 380
Problem with SQL: SELECT (SELECT sum(teacherExpense.earn) from teacherExpense where teacherExpense.tech_id=\'\') as \'ex\',(Select COUNT(*) FROM `courses`WHERE `deleted`=\'0\' and `user_id`=) as \'allcourses\',(Select COUNT(*) FROM `courses`WHERE `deleted`=\'0\' and `user_id`= and `type`=1) as\'recording\',(Select COUNT(*) FROM `courses`WHERE `deleted`=\'0\' and `user_id`=\'\' and `type`=2) as\'normal\',(select `points` FROM `Users` where `Id`=\'\' ) as\'points\',(SELECT count(*) FROM `other_teacher` where `accept`=\'1\' and `teach_id`=\'\') as\'others\',(SELECT count(*) FROM `courses_st_teacher` where `accept`=\'1\' and `teach_id`=\'\') as\'requ\',(SELECT count(*) FROM `other_teacher` where `teach_id`=\'\') as\'aothers\',(SELECT count(*) FROM `courses_st_teacher` where `teach_id`=\'\' and `offered`=\'1\') as\'arequ\'