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 (34194,44848,32454,18894,17237,6862,5410,17492,18301,19078,45518,5388,45180,45277,44765,28313,45515,4765,17556,44863,44766,16935,17351,17981,44674,45286,17601,44854,36472,45051,18286,44866,18572,17835,30986,17904,13922,18172,44858,44687,45567,44745,3883,17114,45262,17335,44837,37267,44853,44640,18430,24412,44689,18042,44875,44861,18652,5259,37057,18279,18996,18688,6609,45561,18719,45072,44856,13,8753,17092)
Unknown column 'np.person' in 'where clause'