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 (44865,17756,45515,13988,18427,45177,44711,44848,17556,17351,45180,45346,17492,44875,5259,45043,18648,24441,44845,44835,16935,17114,44869,45286,22509,44894,44856,17839,18894,14622,5410,44853,18172,13922,14402,44640,9341,5993,18279,13,45277,10402,17771,34194,44689,17657,44775,17527,18185,17601,24438,18353,44868,18794,44873,6782,44866,44764,44768,18572,30986,16885,18996,45516,30963,17904,44870,45561,18446,18237)
Unknown column 'np.person' in 'where clause'