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 (44856,17009,18794,30135,44745,44863,17703,9341,44875,17351,44775,18648,44674,6782,44878,45262,18996,24441,44873,44848,5993,17278,24438,28530,44835,18042,44854,45516,44868,17848,45277,45515,44884,13,3,32454,45042,4765,17601,45177,17771,18286,17527,14622,44853,44687,44671,5388,44836,44766,17981,14402,18900,18652,43800,6875,17755,18279,45043,17839,28313,18427,18446,45421,34194,36472,18894,18353,44711,44765)
Unknown column 'np.person' in 'where clause'