Skip to content

'Problem preparing query (SELECT * FROM monthly_hits WHERE date = ? AND month = ? #416

Closed
@AlbertMN

Description

@AlbertMN

I am getting this error;
Today exists - updating views
Fatal error: Uncaught exception 'Exception' with message 'Problem preparing query (SELECT * FROM monthly_hits WHERE date = ? AND month = ? LIMIT 1) Unknown column 'date' in 'where clause'' in C:\xampp\htdocs\Planestorm\mysql\MysqliDb.php:1479 Stack trace: #0 C:\xampp\htdocs\Planestorm\mysql\MysqliDb.php(1092): MysqliDb->_prepareQuery() #1 C:\xampp\htdocs\Planestorm\mysql\MysqliDb.php(552): MysqliDb->_buildQuery(1) #2 C:\xampp\htdocs\Planestorm\mysql\MysqliDb.php(576): MysqliDb->get('monthly_hits', 1, '*') #3 C:\xampp\htdocs\Planestorm\statics.php(78): MysqliDb->getOne('monthly_hits') #4 {main} thrown in C:\xampp\htdocs\Planestorm\mysql\MysqliDb.php on line 1479

From this code; (when updating)
http://hastebin.com/pitecapuvi.coffee

I can't seem to find the reason.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions