A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'coalition' of non-object

Filename: controllers/Candidates.php

Line Number: 26

Backtrace:

File: /home/votojbcw/public_html/application/controllers/Candidates.php
Line: 26
Function: _error_handler

File: /home/votojbcw/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'language' of non-object

Filename: controllers/Candidates.php

Line Number: 27

Backtrace:

File: /home/votojbcw/public_html/application/controllers/Candidates.php
Line: 27
Function: _error_handler

File: /home/votojbcw/public_html/index.php
Line: 315
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Trying to get property 'seq_order' of non-object

Filename: models/Candidates_model.php

Line Number: 381

Backtrace:

File: /home/votojbcw/public_html/application/models/Candidates_model.php
Line: 381
Function: _error_handler

File: /home/votojbcw/public_html/application/controllers/Candidates.php
Line: 42
Function: get_direction_candidate

File: /home/votojbcw/public_html/index.php
Line: 315
Function: require_once

Database Error

A Database Error Occurred

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'order by candidates.seq_order asc limit 1' at line 6

select distinct candidates.singleline,candidates.id,candidates.seq_order from candidates join coalition on candidates.coalition = coalition.coalition join p_leaning on candidates.p_leaning = p_leaning.name join country on coalition.country = country.id join language on language.id = candidates.language where 1=1 and candidates.seq_order > order by candidates.seq_order asc limit 1

Filename: models/Candidates_model.php

Line Number: 400