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 (24438,44851,19078,17848,44766,18446,18572,17835,17981,44894,30963,45180,45043,6875,18688,44767,45561,17601,18301,6609,45042,18648,45277,5993,44878,30135,18427,19057,18237,45346,44866,44765,17237,44867,16885,44739,18650,44863,45262,44855,44865,18353,45516,44711,5410,30986,44762,44848,31354,18185,17527,18286,44875,44775,24411,8753,6862,34194,28313,18900,44689,44868,17351,17492,14622,18719,44856,6782,39676,44845)
Unknown column 'np.person' in 'where clause'