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 (45286,37267,44894,18042,18650,44867,44764,44878,24412,9341,44768,44685,18572,44853,18719,13,45043,4765,17009,17657,18286,44687,31354,44868,8753,18981,45561,18172,45421,6862,17556,45517,45515,17278,45346,44775,14622,44845,18279,4686,19057,17492,30135,45567,37057,44836,45262,17351,34194,13922,13988,17703,3,17981,17237,24438,30963,17755,44848,44711,44765,28530,44671,17904,44861,3883,44858,5410,18652,44869)
Unknown column 'np.person' in 'where clause'