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 (18353,44853,44865,24411,18572,18688,44669,4686,18279,44875,13,45516,18652,14402,6875,18430,44870,44854,6782,17904,44867,45072,44762,17839,45262,44868,44764,44884,17755,6609,18894,6862,13425,28530,17601,17848,5259,17351,44894,34194,16885,44671,5993,19078,45286,43800,44674,44878,22509,18650,13988,30986,44856,45518,17527,36472,45042,45043,18794,3883,44861,17756,18981,44835,44837,45517,45346,37057,32454,44863)
Unknown column 'np.person' in 'where clause'