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 (45515,45262,14402,44764,18719,17237,17492,28313,45277,44775,18301,45516,44669,44868,17981,44531,22509,44848,18172,17835,24438,18286,17527,44851,9341,17009,18996,13988,17848,45421,44856,18353,18279,44835,44689,45180,37267,5388,17335,44894,36472,45518,45229,4765,44855,28530,44853,5259,17278,18900,30135,5993,44687,18688,31354,18648,24412,44767,24411,45517,45177,6782,18427,17092,6862,45346,45567,3883,17114,44875)
Unknown column 'np.person' in 'where clause'