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 (6875,44689,45072,44767,30986,44878,44868,5993,44775,17278,30963,44869,45516,13922,18301,18688,17009,17755,18237,44856,17756,17848,17527,44866,8753,31354,17703,14622,18650,44875,17351,44765,16935,44858,45043,44849,13988,45042,39676,18430,6609,17492,36472,44837,6862,18446,5388,44863,18981,32454,28530,16885,45515,14402,44851,44853,44845,44848,18353,17771,44762,44674,44768,44855,34194,45177,45262,44711,5410,18996)
Unknown column 'np.person' in 'where clause'