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 (17278,18237,18042,8753,44767,18981,45515,44856,44866,37057,44855,17771,17335,6609,17092,44836,44640,9341,45051,17351,28530,44768,18894,18353,24412,17601,3,19057,37267,45180,44851,13,45043,34194,44674,18301,44865,18172,18279,44853,17755,4686,13988,14402,44875,10402,30963,30135,32454,18652,44835,44762,3883,44884,17527,44685,17756,45072,24411,44671,13425,44861,44868,18688,13922,45277,45177,44687,18185,39676)
Unknown column 'np.person' in 'where clause'