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 (44671,18650,45286,17657,18900,44861,32454,44531,18286,45518,44768,44762,37057,18042,5388,44640,45561,18301,44851,18279,17335,44745,44836,44894,17237,44685,17092,6782,37267,45262,45229,3883,18185,18430,45346,17756,28530,6609,5410,13,44766,18572,17981,13922,45421,36472,10402,17848,44869,44669,44866,3,22509,8753,18353,44863,44687,18688,18172,17527,17755,45277,45043,6875,18237,5259,17904,44858,44855,44853)
Unknown column 'np.person' in 'where clause'