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 (30986,30963,16935,17657,17981,45043,18650,44870,13922,19057,16885,8753,18353,44875,44851,44854,45229,44669,45042,13,44866,44687,14402,17839,44856,45072,6609,44863,43800,44865,44766,18900,45421,17904,5259,44531,18172,17092,44853,30135,44640,37057,10402,17278,45515,44745,44685,44845,18572,18237,44767,18688,44674,18652,17771,17335,44671,9341,18279,17556,17835,37267,45051,34194,44768,45516,44849,17114,45277,44837)
Unknown column 'np.person' in 'where clause'