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 (24411,17839,36472,17904,5388,39676,18279,44865,44858,17703,44531,45518,9341,44711,45043,13922,18572,18981,44765,30135,24412,6875,44768,44851,44671,8753,45286,17527,44875,44873,17657,44856,13988,45346,18794,44762,28530,45042,44775,44854,44878,37057,37267,45515,18996,18286,45177,45567,17237,18353,44870,16935,17835,6862,44866,44894,17601,44855,5993,18185,17755,6609,44861,14622,45180,19078,17556,44689,19057,18894)
Unknown column 'np.person' in 'where clause'