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 (17092,28530,30986,17335,17848,44671,22509,17114,28313,18427,34194,17771,44837,18430,17351,18996,45180,44853,17556,44835,44851,44854,17527,17839,14402,44689,24412,45515,18688,44685,44711,6782,16935,17755,13988,44856,24411,44531,24438,45421,18301,37057,45229,31354,44739,9341,44855,17835,44858,44870,13922,18172,36472,37267,6862,17657,4765,18981,45518,5993,10402,44764,6875,44687,44849,18652,44836,18237,18353,5410)
Unknown column 'np.person' in 'where clause'