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 (18301,45286,45262,16885,44868,6609,44845,37057,4686,45051,44669,18719,44687,30986,18185,13922,18446,14402,17351,44848,13988,44711,6875,6862,19057,45072,17527,44867,45517,18353,13,45561,44531,30963,45346,34194,18279,24438,37267,17114,45043,44861,44762,17755,44766,44878,44875,17237,44851,28530,18286,45042,8753,9341,44837,44767,44739,18981,18650,17009,18648,18572,5993,17981,3,5259,17556,44855,31354,45277)
Unknown column 'np.person' in 'where clause'