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 (44764,6609,44766,17703,13988,44745,44858,17755,44640,44856,44689,14402,45286,14622,13922,18237,44687,17114,6862,45346,44848,45043,16935,44671,17009,44854,18286,44836,37267,18794,34194,16885,18353,44531,17835,44685,17756,36472,18446,5410,18172,18900,44884,45042,18981,45516,44868,17492,44837,5993,30135,4765,17839,17278,44711,18427,6782,43800,44851,18430,44762,17335,17981,17904,31354,45180,17771,45561,18301,17092)
Unknown column 'np.person' in 'where clause'