Uncaught Exception: SqlException

Message:
invalid query:- SELECT * FROM site_page WHERE parent_page_id = and language_id= 1 Order by page_name ASC
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and language_id= 1 Order by page_name ASC' at line 1
Created in file /var/www/vhosts/royaltyfreeimages.eu/httpdocs/GL/lib/database/SqlDatabaseManager.class.php on line 148.

Stack Trace:
#0 /var/www/vhosts/royaltyfreeimages.eu/httpdocs/appcode/datamanager/ContentManagementDataManager.class.php(721): SqlDatabaseManager->executeQuery('SELECT * FROM s...')
#1 /var/www/vhosts/royaltyfreeimages.eu/httpdocs/protected/controller/page.php(67): ContentManagementDataManager->subPageInfo(NULL, '1')
#2 [internal function]: page->info('APPLICATION_URL...')
#3 /var/www/vhosts/royaltyfreeimages.eu/httpdocs/GL/lib/RegisterCallback.class.php(8): call_user_func_array(Array, Array)
#4 /var/www/vhosts/royaltyfreeimages.eu/httpdocs/GL/lib/Application.class.php(47): RegisterCallback::register(Object(page), 'info', Array)
#5 /var/www/vhosts/royaltyfreeimages.eu/httpdocs/index.php(24): Application::run(Object(HttpRequest))
#6 {main}
5.
In file /var/www/vhosts/royaltyfreeimages.eu/httpdocs/appcode/datamanager/ContentManagementDataManager.class.php line 721.
Method: SqlDatabaseManager->executeQuery([$query FILTERED])
4.
In file /var/www/vhosts/royaltyfreeimages.eu/httpdocs/protected/controller/page.php line 67.
Method: ContentManagementDataManager->subPageInfo([$pageId FILTERED], [$language_id FILTERED])
3.
In file unknown line unknown.
Method: page->info([$page_link FILTERED])
2.
In file /var/www/vhosts/royaltyfreeimages.eu/httpdocs/GL/lib/RegisterCallback.class.php line 8.
Method: call_user_func_array([$function_name FILTERED], [$parameters FILTERED])
1.
In file /var/www/vhosts/royaltyfreeimages.eu/httpdocs/GL/lib/Application.class.php line 47.
Method: RegisterCallback::register([$class FILTERED], [$funcName FILTERED], [$args FILTERED])
0.
In file /var/www/vhosts/royaltyfreeimages.eu/httpdocs/index.php line 24.
Method: Application::run([$request FILTERED])