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 (30135,6609,44873,44875,4686,18427,44531,45286,6862,18719,44640,32454,44685,3883,45177,44837,37267,28530,17703,18794,3,17092,44671,44669,44674,13922,44765,34194,44689,17771,17848,18042,16885,14402,17601,18572,44764,44766,44858,18648,18279,45262,13425,17657,37057,45072,44767,45517,44884,44762,18981,5259,18185,17492,17755,24412,18172,45346,45051,44836,44870,45421,31354,10402,44853,17114,44848,4765,45042,5410)
Unknown column 'np.person' in 'where clause'