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 (44768,6875,18286,45043,16885,44869,17756,18996,17755,45262,44870,37267,45277,45567,17848,13922,17835,17601,44674,13,44866,44711,44863,44865,44764,4765,18894,17703,45177,18572,44765,18688,17657,17114,45515,13425,32454,14622,36472,44671,9341,18042,17492,14402,4686,44868,5388,45346,44836,37057,18446,17009,45286,45051,44856,44878,17237,18650,18237,45516,44669,44687,18719,19078,44853,18301,17278,18279,18430,44766)
Unknown column 'np.person' in 'where clause'