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 (18353,17981,24412,44854,24411,44640,18172,36472,18430,44669,18794,45561,5993,45180,24438,44851,6609,45042,45286,13922,44689,30135,44687,44861,45346,17904,37057,45567,28313,18042,44775,45072,44766,39676,6782,45518,18301,3883,45516,6875,18648,44835,17848,18688,18652,34194,18279,18572,44836,5388,18237,44870,45262,45421,45043,18286,17092,17556,17839,17601,44845,22509,44866,45177,31354,18427,44875,44853,16935,44685)
Unknown column 'np.person' in 'where clause'