Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (34194,44870,17756,17755,44894,44837,17527,17703,44711,5993,44869,22509,17981,44689,45180,44685,17556,44865,44854,28313,17904,24411,17657,37057,44531,44835,18652,18301,18286,17092,18794,44848,44867,44856,44884,18981,31354,44875,18894,16885,17114,5388,45042,18427,3,18572,17839,44745,44853,6875,3883,44671,45515,18279,44766,13,24438,18172,8753,18042,44836,14622,45051,14402,17848,18237,18648,17601,18185,17278)
Unknown column 'np.person' in 'where clause'