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,45051,6862,17839,13425,44531,45177,44868,44767,16885,37057,44768,24411,24412,44878,44849,18237,8753,44848,45043,44689,45180,45072,44870,18446,45518,24438,18894,44745,6875,19078,45286,6782,45346,30986,44873,44894,24441,18996,3,17756,17278,30963,30135,14622,4686,18572,18353,44671,5388,4765,17492,37267,44869,28313,45517,44884,32454,44851,34194,17657,18719,18981,17351,39676,17527,17755,43800,44640,44711)
Unknown column 'np.person' in 'where clause'