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 (10402,44866,44868,44856,44863,3883,5388,18719,44853,44858,44848,45262,44766,45561,44767,8753,13922,6609,32454,44875,44884,17703,13,17601,44851,18185,45051,44687,3,44531,17839,45518,45421,44861,18301,44867,18427,37057,17657,44845,18794,44775,14402,18648,44873,17981,45516,45180,18572,44640,34194,44674,18688,45286,17835,24441,13425,19057,17278,44870,44669,44739,17904,43800,17755,30135,18353,18996,45346,17335)
Unknown column 'np.person' in 'where clause'