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 (37057,5410,45180,18279,39676,44884,5388,28530,44865,44671,44855,18172,37267,17556,36472,18688,18427,44767,45518,18301,6782,45072,18185,44764,44711,34194,18353,45561,14402,6862,17657,5993,44861,17335,4686,17981,16935,17009,18894,45286,17351,17278,45346,24438,45043,18237,17601,18650,44689,13,17527,19057,44870,44745,45421,13922,17492,17835,30963,18446,24412,45229,17848,45516,45177,45262,17755,18794,45277,44853)
Unknown column 'np.person' in 'where clause'