Fatal error: Uncaught exception 'ActiveRecord\DatabaseException' with message 'exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'distance' in 'order clause'' in D:\xampplite\htdocs\classes\php-activerecord\lib\Connection.php:322 Stack trace: #0 D:\xampplite\htdocs\classes\php-activerecord\lib\Connection.php(322): PDOStatement->execute(Array) #1 D:\xampplite\htdocs\classes\php-activerecord\lib\Table.php(218): ActiveRecord\Connection->query('SELECT * FROM `...', Array) #2 D:\xampplite\htdocs\classes\php-activerecord\lib\Table.php(209): ActiveRecord\Table->find_by_sql('SELECT * FROM `...', Array, false, NULL) #3 D:\xampplite\htdocs\classes\php-activerecord\lib\Model.php(1567): ActiveRecord\Table->find(Array) #4 [internal function]: ActiveRecord\Model::find('all', Array) #5 D:\xampplite\htdocs\classes\php-activerecord\lib\Model.php(1395): call_user_func_array('static::find', Array) #6 D:\xampplite\htdocs\classes\models\gallery\Image.php(398): ActiveRecord\Model::all(Array) #7 D:\xa in D:\xampplite\htdocs\classes\php-activerecord\lib\Connection.php on line 325