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 (32454,30963,44878,45042,17556,17657,17351,13,24438,18172,45567,6782,44767,13922,44884,30135,17839,44868,45277,17904,18996,44863,24412,44853,28530,18894,18237,44835,5993,17981,18301,44849,44766,18572,45286,44875,36472,22509,17335,17527,44674,37057,45561,4765,18688,17835,44855,5410,17237,44689,17092,44711,34194,44856,17756,45518,44845,44851,19078,17848,3883,44775,24411,18650,44873,18427,16885,14402,18279,18446)
Unknown column 'np.person' in 'where clause'