Notice: Undefined index: dbo.Main Table_sql in C:\Inetpub\lariche\mysite4\Main_Table_print.php on line 29

Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> Microsoft OLE DB Provider for SQL Server<br/><b>Description:</b> Line 1: Incorrect syntax near '*'.' in C:\Inetpub\lariche\mysite4\include\dbconnection.mssql.win.php:20 Stack trace: #0 C:\Inetpub\lariche\mysite4\include\dbconnection.mssql.win.php(20): com->Execute(' count(*) ') #1 C:\Inetpub\lariche\mysite4\include\dbcommon.php(863): db_query(' count(*) ', Object(com)) #2 C:\Inetpub\lariche\mysite4\Main_Table_print.php(33): GetRowCount(NULL) #3 {main} thrown in C:\Inetpub\lariche\mysite4\include\dbconnection.mssql.win.php on line 20