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 (17848,44878,17114,17335,44851,45072,44875,6609,17771,18042,18353,16885,18981,45561,18648,44836,19078,34194,13425,44856,45516,17492,44845,10402,18572,17527,45043,14402,6782,5993,18652,44531,18719,44849,30135,17839,18996,18446,24438,18237,45515,18279,44867,17756,45567,30963,44745,24412,44674,17278,18688,37267,44739,17092,45421,18430,18900,17601,44853,31354,3883,18172,44762,45518,18286,3,44873,45286,13,32454)
Unknown column 'np.person' in 'where clause'