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 (44884,3883,18981,4686,18900,44762,32454,34194,5259,45286,45229,24441,17756,44837,45561,18996,45516,17492,28313,18286,13,16935,17848,6609,37267,44849,45567,44768,45517,17839,18042,44848,18652,24438,44687,24411,44764,17904,17009,44765,30135,44868,18427,17703,39676,44685,13425,17981,44861,44739,18185,17278,45515,3,18353,44767,16885,17657,17771,18688,44836,17335,44870,17527,13988,36472,4765,28530,18172,17114)
Unknown column 'np.person' in 'where clause'