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 (36472,45517,9341,44861,18719,18996,44764,44853,18042,44866,16885,5993,44873,18286,45177,45072,24438,44768,17237,37057,18427,44875,3883,44863,44870,24441,17492,18353,44854,17351,45516,45042,13425,45051,10402,32454,45043,30963,17527,24412,34194,44858,37267,17771,44845,45515,17848,14402,44851,44869,43800,44868,17278,30135,44762,18981,17009,44836,17756,6875,17114,44671,18172,18648,44849,17703,6609,19057,13988,22509)
Unknown column 'np.person' in 'where clause'