Error: 0
Message: PDO Error: SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'active' in where clause is ambiguous Query: SELECT p.*, m.filePathInternal, m.fileName, m.fileExtension, width, height, showcopyright, display_big, mde.description media_desc, copyright, nt.code, ntd.short_name nationalityName, nt2.code code2, ntd2.short_name secondNationalityName FROM profile p LEFT JOIN media m ON p.image = m.id LEFT JOIN media_description mde ON m.id = mde.media_id AND mde.language_id = 2 LEFT JOIN national_team nt ON nt.id = p.nationality LEFT JOIN national_team_description ntd ON ntd.national_team = p.nationality AND ntd.language = 2 LEFT JOIN national_team nt2 ON nt2.id = p.secondNationality LEFT JOIN national_team_description ntd2 ON ntd2.national_team = p.secondNationality AND ntd2.language = 2 WHERE p.id=? AND active=? ORDER BY p.id DESC LIMIT 1
File: /var/www/html/cska/tinymvc/sysfiles/plugins/tinymvc_pdo.php
Line: 550
Trace: #0 /var/www/html/cska/tinymvc/sysfiles/plugins/tinymvc_pdo.php(513): TinyMVC_PDO->_query('SELECT p.*, m.f...', Array, 1, NULL)
#1 /var/www/html/cska/tinymvc/myapp/models/profile_model.php(212): TinyMVC_PDO->query_one()
#2 /var/www/html/cska/tinymvc/myapp/controllers/profile_controller.php(115): Profile_Model->get_active_profile('1285', 2, 1)
#3 /var/www/html/cska/tinymvc/myapp/controllers/root.php(182): Profile_Controller->profile('1285')
#4 /var/www/html/cska/tinymvc/sysfiles/TinyMVC.php(120): Root_Controller->index()
#5 /var/www/html/cska/htdocs/index.php(81): tmvc->main()
#6 {main}