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 (24438,45286,14402,44856,18688,13,3,17492,18996,45043,44863,14622,5388,44764,18652,44845,8753,24412,19078,44868,44867,28313,34194,44858,44765,17848,44640,17278,6875,17771,44674,4765,18185,45277,44884,17092,18172,44861,44869,44669,3883,44837,18279,18719,30986,17756,44671,18650,44849,44739,44873,44894,44687,17755,44775,24411,17981,44878,17114,28530,37267,45180,45567,18353,37057,45346,44848,6609,22509,44745)
Unknown column 'np.person' in 'where clause'