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 (17771,17278,44851,17848,30986,18719,30963,18427,44866,17904,18650,17839,45043,44855,44687,16885,44768,44640,44858,45042,6862,45516,45229,44848,44870,8753,14622,44863,18301,17703,45051,44875,44845,18981,45072,18900,18353,17755,6875,45180,5410,45518,44765,34194,24438,44873,18279,18996,44767,45517,18652,44865,17335,18237,9341,4686,17835,19078,44762,5259,18172,24441,17981,18894,4765,28313,36472,18572,44745,18648)
Unknown column 'np.person' in 'where clause'