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 (44867,17237,18648,18446,45561,17335,44845,18353,5993,30986,44836,44767,17492,18900,19078,44669,44674,10402,18237,39676,22509,34194,17114,44762,44685,4765,44711,45180,44745,45277,17657,28530,24412,44875,8753,9341,3,13988,45177,18279,45286,44851,43800,31354,18650,44848,4686,44739,6782,17278,17755,44765,45421,45346,17756,17981,36472,44858,13425,45072,17556,45518,14402,17835,37057,45043,18185,17351,5410,18794)
Unknown column 'np.person' in 'where clause'