A PHP Error was encountered

Severity: Notice

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

Filename: controllers/Picture.php

Line Number: 150

Backtrace:

File: /home/bikepics/public_html/application/controllers/Picture.php
Line: 150
Function: _error_handler

File: /home/bikepics/public_html/index.php
Line: 318
Function: require_once

A PHP Error was encountered

Severity: Notice

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

Filename: controllers/Picture.php

Line Number: 151

Backtrace:

File: /home/bikepics/public_html/application/controllers/Picture.php
Line: 151
Function: _error_handler

File: /home/bikepics/public_html/index.php
Line: 318
Function: require_once

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/bikepics/public_html/system/core/Exceptions.php:271)

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /home/bikepics/public_html/application/models/Pictures_model.php
Line: 117
Function: query

File: /home/bikepics/public_html/application/controllers/Picture.php
Line: 174
Function: get_general_pics_total_pages

File: /home/bikepics/public_html/index.php
Line: 318
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 'join `modelusertable` as `mu` on `p`.`ModelUserNumber` = `mu`.`ModelUserNumber`' at line 5

select count(`p`.`PhotoNumber`) as total_records from `photonumbertable` as `p` left join `usernumbertable` as `u` on `p`.`UserNumber` = `u`.`UserNumber` left join `modeltable` as `mo` on `p`.`ModelNumber` = `mo`.`ModelNumber` and `mo`.`ManufacturerNumber` = left join `modelusertable` as `mu` on `p`.`ModelUserNumber` = `mu`.`ModelUserNumber`

Filename: models/Pictures_model.php

Line Number: 117