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 (18650,17848,14622,5993,44835,17492,17278,17527,18172,44711,17237,19057,44894,44851,45051,37267,17755,9341,18688,16935,18279,24411,44861,44764,44854,44856,4765,30135,44867,45567,18427,16885,13988,6782,6862,17839,28313,24441,18652,45177,45561,44853,44845,44767,18185,44739,45286,44873,44869,17092,45043,44866,3883,17335,17114,44865,44875,44685,17771,45042,10402,45346,17703,36472,45072,44768,32454,34194,13922,24412)
Unknown column 'np.person' in 'where clause'