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 (5993,43800,10402,45229,45042,44687,24438,17601,44845,18427,44866,44858,18650,18279,39676,44762,13425,5259,44837,45051,6609,44865,17527,14622,44835,18996,44768,45515,44861,8753,30963,9341,44884,17904,17981,18794,19057,17237,44851,45043,44765,13922,44869,17756,44875,44689,18185,17009,28530,4686,17556,45286,18719,45517,18042,5410,14402,44849,6862,45567,45346,19078,17848,44640,22509,45561,32454,17839,17351,18446)
Unknown column 'np.person' in 'where clause'