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 (30963,18286,17601,18446,18900,37057,45177,44689,18648,18172,28313,45515,45286,6875,44884,17335,44687,22509,16885,17835,10402,24411,44669,18427,18981,44894,44711,3,17771,45043,9341,17351,44765,17556,45518,45277,45567,45421,13425,45042,31354,24412,45561,44767,14402,17756,16935,17009,5410,13922,17114,24438,44854,18996,18794,44836,45229,14622,24441,36472,44856,44845,18652,30135,28530,17092,44762,30986,44875,34194)
Unknown column 'np.person' in 'where clause'