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 (18900,44765,24411,45177,30963,13425,17756,6609,37057,31354,17755,45286,18237,13988,44687,13,44671,22509,17527,44878,4765,44873,10402,44689,14402,44764,17904,17835,45229,18430,34194,18427,45516,18172,44867,18279,5993,17556,37267,16935,5388,17601,44868,30135,45042,17703,13922,45515,44865,18185,19078,44849,18996,19057,18648,44858,9341,45518,39676,44745,36472,45421,44836,18688,45277,45561,8753,44837,44870,17771)
Unknown column 'np.person' in 'where clause'