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 (44640,18042,44765,44870,44851,44711,44894,17657,44869,18894,30986,44873,44671,18794,17839,45229,37057,34194,17114,18648,10402,44861,45277,17981,44766,32454,17601,18446,28313,17092,24438,18427,22509,6609,44674,18430,44867,5993,17835,18572,44837,6782,8753,45516,45180,5388,45561,18172,44531,44739,18688,17756,5259,17755,17278,45051,44858,4686,44863,44875,17556,44854,17009,45043,44848,18301,28530,44855,18353,45286)
Unknown column 'np.person' in 'where clause'