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 (45043,44868,6782,44865,31354,17351,18648,14622,18794,17278,45567,44869,18237,17527,32454,44640,44837,18996,44870,44853,18446,17114,5410,44866,18719,45072,28530,44687,39676,45177,45517,13,13425,45180,43800,5993,18900,19078,17981,44848,44849,44863,17771,45346,36472,18279,18185,18650,18301,18572,44867,44669,17009,3,44764,4765,18688,37267,45262,45051,44767,44762,18353,44855,8753,17657,30963,16935,18172,44873)
Unknown column 'np.person' in 'where clause'