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 (44640,17657,17835,44711,44855,18650,44835,45516,45072,45051,44861,9341,14402,44856,19057,44875,44845,44669,45517,18900,45286,14622,45561,32454,18237,16885,17092,24411,44865,4686,44894,5993,13425,6609,44687,45042,18894,13988,18648,45043,44853,44767,17351,17848,45180,45346,34194,17009,45262,36472,18301,4765,17981,24438,30135,44866,44868,44848,18652,17771,43800,17237,24412,17335,3,18279,45515,18794,6782,18719)
Unknown column 'np.person' in 'where clause'