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,44878,18279,18794,6862,18446,45517,44869,44762,19057,3,45561,30135,30986,44868,8753,44894,17755,24412,16935,44640,44711,6782,44873,44858,37267,17556,18652,44856,18185,45286,6875,18900,28530,17114,44855,45515,17904,45346,18172,18719,44863,18650,45051,45043,44835,18688,44687,9341,18301,43800,17237,30963,45229,17981,17657,39676,18572,44685,4765,44768,17756,17839,3883,44867,17835,5993,17703,16885,44767)
Unknown column 'np.person' in 'where clause'