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 (34194,28530,44848,45229,45051,17756,6782,17492,43800,37267,44775,44851,45043,44766,17904,13,44762,18688,45180,16935,17009,14622,18353,17556,44858,44861,18042,45346,17657,17092,10402,44687,6875,44865,44853,36472,44870,5259,44711,5993,44873,6862,44878,17839,24438,8753,45517,45277,17981,17703,3,31354,44855,44866,44875,32454,24411,13922,45177,17237,18237,18185,45515,44894,17527,44669,17848,17114,9341,44674)
Unknown column 'np.person' in 'where clause'