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 (17335,44764,24412,17527,28313,13,13922,17351,3883,17556,44856,18794,44849,44867,17755,44711,18650,17703,44873,17981,45421,18648,44640,18688,17657,44671,6875,37267,44858,19078,3,17839,44836,44835,6609,44854,18301,4765,5410,44689,45567,44861,17237,45042,17771,30986,28530,17601,45229,17904,45072,44766,6782,34194,24411,45051,44768,36472,44848,45561,13988,44531,30963,18996,44837,45517,16935,17848,44894,18719)
Unknown column 'np.person' in 'where clause'