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 (44865,14402,18688,17835,44739,19078,6782,17904,44863,44851,44835,18894,18301,44854,45177,44765,44689,17981,24412,18572,24411,30986,44894,18286,45072,44856,44873,6875,32454,44848,44745,44866,17009,30963,13,18042,6609,13988,4765,5259,18172,45277,18427,45043,13922,45286,18794,45515,37057,17755,44868,44687,13425,31354,44674,18996,4686,44764,17657,45346,17351,22509,28530,44855,18981,44767,44861,5993,45051,44870)
Unknown column 'np.person' in 'where clause'