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 (24438,3,45229,44685,18446,44745,18652,39676,45277,17904,5259,18650,14402,18648,44870,32454,17009,17556,45262,18185,16935,24412,44671,44768,44863,17092,13922,45051,45180,17351,30986,37057,17335,5993,45043,17981,44669,5388,17114,22509,44640,17703,17839,44894,36472,45177,18572,30963,44853,13,18688,13425,18430,37267,44848,14622,18353,4686,18427,17657,45346,44687,44884,31354,13988,44861,5410,10402,44767,44835)
Unknown column 'np.person' in 'where clause'