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 (18572,17092,44856,6875,44853,45262,45051,45229,17703,36472,18652,6862,14402,44861,5993,22509,44762,4765,44531,10402,18894,17278,14622,18650,19078,44863,44870,44687,5410,8753,44711,17114,17657,18237,44764,44855,18430,44837,17351,17771,44671,45516,17981,44685,18794,44745,30963,17904,6782,18996,17835,13,32454,17492,17527,18279,44866,18427,44689,44867,39676,44894,18286,19057,44869,18042,31354,17556,18301,9341)
Unknown column 'np.person' in 'where clause'