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 (17351,45051,18286,44640,45180,44856,18279,44745,18900,13,44689,44765,17009,9341,45516,44768,17657,44868,6875,17237,44865,17703,18648,24412,24438,45518,18719,44853,17835,4686,45346,44848,45177,22509,18572,18652,18042,44836,18996,18650,44669,17839,18446,19057,44764,44869,17092,18301,37267,44674,14402,39676,24411,5993,17278,17601,17492,44775,45229,17904,18172,44855,5410,44837,32454,44867,14622,13988,18427,45262)
Unknown column 'np.person' in 'where clause'