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 (45051,45515,44878,44765,17237,18172,13922,3,8753,30135,13988,18981,44766,18353,44865,44687,44835,18042,4686,30963,44858,44674,5993,6782,31354,18430,44855,45177,44853,37267,44851,44669,24411,13425,4765,45286,45517,6609,45518,44856,17848,17492,17351,44861,44869,18648,44640,24412,17009,18794,44868,6875,44764,44854,44685,45561,44689,36472,45262,17601,44836,17904,45043,44873,18286,45180,18652,18427,44867,28313)
Unknown column 'np.person' in 'where clause'