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 (44685,44884,18900,22509,45262,44835,44875,14402,45517,34194,44767,17114,6782,17601,17278,17657,45177,37267,37057,17981,17904,36472,45286,44863,13,45042,45421,45051,8753,44745,18648,18688,44894,45516,18996,6875,3883,44866,44845,39676,44854,17492,24412,4765,18286,44867,44849,45567,17839,17527,44836,44861,17703,18650,18185,5410,44870,44837,32454,24438,30135,18719,44855,10402,44762,13922,17835,44687,4686,28313)
Unknown column 'np.person' in 'where clause'