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 (6782,18353,18042,44855,17601,44868,18430,17771,44745,45042,44863,6609,44640,18172,17237,24411,44835,17756,9341,3883,44884,17092,44768,44764,45177,44687,18650,44848,45421,17904,17703,19057,44849,45262,45346,44711,5259,18996,44875,44531,5993,44671,45567,5410,45516,18301,18981,44856,44837,17848,4765,18894,6875,19078,18286,28530,44870,17835,45517,44775,44873,6862,30135,22509,45515,16885,44866,34194,18279,13)
Unknown column 'np.person' in 'where clause'