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 (44739,45180,19078,18688,24441,18279,18981,44768,44689,17351,5388,18648,17492,17009,18172,6609,37267,13425,17755,44865,45051,17237,45072,24411,39676,44851,18794,45277,14402,44873,18894,28313,44875,18996,44853,45286,5410,44849,13922,32454,18430,16885,28530,18286,44711,18446,45262,44869,18427,45346,17278,17848,17527,17981,44894,17092,18301,18650,18042,44848,45177,31354,44837,44762,17756,45421,44669,45561,44640,4686)
Unknown column 'np.person' in 'where clause'