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 (45518,44835,44836,44711,17351,34194,18996,17657,17756,10402,18286,18185,45346,44685,17278,44870,44869,44854,18353,24412,45516,18688,17601,44687,16935,28530,45286,45561,5993,44689,14402,37267,18427,4686,36472,18301,44853,44878,18981,18648,45567,18719,16885,31354,18279,44848,44766,44884,45043,17009,44845,44866,5410,44767,30986,24411,44858,44674,37057,6875,45277,44851,3,45517,17492,44875,44873,13,5259,17237)
Unknown column 'np.person' in 'where clause'