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 (36472,44854,45346,44863,44745,18172,24411,10402,4686,44884,44855,44674,44858,18427,4765,17848,17556,44531,44865,17092,8753,30963,45072,13,37057,45421,17904,45180,44775,16935,44689,44849,44861,18279,6875,44836,44866,44687,44837,44873,17839,45515,44845,17114,44867,45229,44869,22509,45042,18353,44739,45567,5993,17237,18981,45177,13922,45051,44711,44767,30135,9341,5388,32454,45262,17335,24438,18652,17981,17835)
Unknown column 'np.person' in 'where clause'