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 (16885,31354,30135,44851,17601,17771,17904,44894,44848,17755,18900,16935,44531,18719,18237,17835,37057,6782,45516,17981,44745,13425,32454,44873,17492,13988,5259,4686,18572,44849,44671,37267,14402,45567,44866,18430,17237,14622,44762,18650,45180,17657,17556,36472,45042,39676,44870,18688,44867,18286,44687,44767,17278,8753,24411,44861,43800,44765,45277,17092,44775,3883,24438,18996,5388,6609,28313,5410,18894,45072)
Unknown column 'np.person' in 'where clause'