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 (45286,13425,3883,37267,44848,44835,18286,19057,37057,44768,18894,44669,44764,44867,18719,17556,5993,45072,45262,34194,44858,28313,45229,5410,3,17657,18794,44866,45518,43800,44884,39676,4686,44878,45042,45043,44762,17351,18652,45421,44863,44671,44640,17601,18185,17981,45561,45051,45177,44873,45516,28530,44853,18172,17703,17839,5388,44851,24412,8753,30986,9341,44849,18446,44865,17756,45515,5259,18572,16935)
Unknown column 'np.person' in 'where clause'