ThobbeBoy Posted August 9, 2012 Share Posted August 9, 2012 Hi there! I got this stange error with no luck to resolve it. SQL Error: Unknown column 'important' in 'where clause' - Full Query: SELECT tblnotes.*,(SELECT CONCAT(firstname,' ',lastname) FROM tbladmins WHERE tbladmins.id=tblnotes.adminid) AS adminuser FROM tblnotes WHERE userid='8' AND important='1' ORDER BY `modified` DESC 0 Quote Link to comment Share on other sites More sharing options...
altomarketing Posted August 10, 2012 Share Posted August 10, 2012 when are you having this issue? this can be easily repaired with phpmyadmin, but it is important to detect what cause this issue 0 Quote Link to comment Share on other sites More sharing options...
ThobbeBoy Posted August 10, 2012 Author Share Posted August 10, 2012 (edited) It will come when iam adding user or edit some user with there domain and so on. Edit: Deleted Product/Service - User ID: 3 - Service ID: 3 - 10/08/2012 00:57 - MYUSERNAME - MYIP SQL Error: Unknown column 'important' in 'where clause' - Full Query: SELECT tblnotes.*,(SELECT CONCAT(firstname,' ',lastname) FROM tbladmins WHERE tbladmins.id=tblnotes.adminid) AS adminuser FROM tblnotes WHERE userid='3' AND important='1' ORDER BY `modified` DESC Edited August 10, 2012 by ThobbeBoy updated with more info 0 Quote Link to comment Share on other sites More sharing options...
ThobbeBoy Posted August 10, 2012 Author Share Posted August 10, 2012 Well this is full info i can get with the error now. SQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'SELECT (SELECT COUNT(*) FROM tblhosting WHERE userid=tblclients.id AND domainsta' at line 1 - Full Query: SELECT * FROM SELECT (SELECT COUNT(*) FROM tblhosting WHERE userid=tblclients.id AND domainstatus IN ('Active','Suspended'))+(SELECT COUNT(*) FROM tblhostingaddons WHERE hostingid IN (SELECT id FROM tblhosting WHERE userid=tblclients.id) AND status IN ('Active','Suspended'))+(SELECT COUNT(*) FROM tbldomains WHERE userid=tblclients.id AND status IN ('Active')) AS activeservices FROM tblclients WHERE tblclients.id=12 LIMIT 1 0 Quote Link to comment Share on other sites More sharing options...
xister Posted September 9, 2012 Share Posted September 9, 2012 Any news on this? we´ve the same error messages. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.