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 (18427,13425,10402,36472,28530,6862,44766,45042,45072,24438,17839,17092,18719,31354,32454,44775,44669,18652,44858,17335,18279,44835,17009,17492,34194,45286,43800,17527,24411,17981,24412,44894,17703,5993,45517,44762,45515,17278,44768,44711,39676,18042,19078,30963,5410,24441,18172,30986,44870,30135,45516,17237,45518,3,44875,17756,5388,6875,5259,17556,18185,44855,18353,13,16935,18794,44873,44687,28313,16885)
Unknown column 'np.person' in 'where clause'