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 (44868,17237,44855,17981,45042,28313,31354,44849,18981,18652,44866,44875,32454,13,5388,34194,44884,44870,44671,44837,36472,18900,44739,18172,44878,44685,44851,18279,18648,44869,18996,17009,45051,17492,44867,17771,18446,17278,6875,5259,44687,18301,44765,18353,43800,18688,44863,45567,10402,4765,17755,17756,22509,44856,17351,18650,44775,45561,45518,18286,39676,45286,17835,45043,19057,44853,24438,4686,18185,45516)
Unknown column 'np.person' in 'where clause'