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 (45072,44861,5410,4686,18688,28530,17492,44868,18794,13988,17848,18446,5388,45518,24441,44685,44863,17278,44867,5259,45515,44853,18981,31354,44836,17657,18894,45262,44856,45177,44849,5993,45517,44858,44854,45567,17755,22509,16935,4765,18650,34194,17009,17756,17771,18185,13922,8753,44711,44767,18237,37267,18719,44640,6875,18427,17114,36472,44762,44531,44768,18652,19078,44884,44873,24411,14622,44865,17839,44894)
Unknown column 'np.person' in 'where clause'