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 (44863,45177,44768,17114,18042,44767,44836,28313,18427,44867,34194,44687,17848,44531,30986,18572,44671,18794,44884,44875,18237,44853,10402,37267,17755,44854,5388,44674,6862,19078,44765,14402,45286,18719,24438,45180,3,17657,44640,14622,4765,5259,18446,30963,18648,17771,37057,18894,44775,45277,18353,13988,44711,44766,45051,13922,18279,45072,18981,18652,44689,44869,32454,44861,18172,17092,17835,22509,44851,5993)
Unknown column 'np.person' in 'where clause'