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 (17835,44875,17839,44884,17904,44640,6862,17237,17703,44845,17771,10402,17278,44768,44863,18894,18652,17556,44858,18688,45180,17601,17492,44765,45043,44689,44856,45516,17981,17335,45515,24412,45051,34194,44878,44894,45346,45229,19057,44764,45177,44669,44867,18237,18996,44687,3,13922,44531,6875,24438,45277,6782,44855,37057,30963,4686,17848,19078,18279,44835,17351,36472,44711,30135,17755,18172,44865,9341,4765)
Unknown column 'np.person' in 'where clause'