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 (44739,44863,6782,30986,18648,17335,17771,44531,5993,45072,14402,44869,17092,17114,45346,17657,45229,44851,14622,44894,30135,8753,18688,18286,34194,44865,17703,44764,37057,17835,45286,44858,6875,9341,31354,18172,17278,44835,45517,18981,18353,18042,44848,44855,17009,44878,45518,18572,44687,44849,18794,44868,17755,18301,45277,17492,24412,28530,44775,4686,18427,18430,44689,17601,17351,44711,30963,45516,6862,44856)
Unknown column 'np.person' in 'where clause'