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,17839,13988,4765,24412,44867,6875,17556,30963,39676,45421,17237,3883,45277,44884,45072,44765,28313,18185,17755,44863,6609,18981,44835,17657,37267,45177,17848,44873,17114,17703,44671,18996,44711,17335,18430,19078,5410,44866,44689,18900,9341,44853,45515,19057,17278,44855,44767,6782,44739,45180,18172,17351,44868,36472,45517,18279,44745,45229,13922,44687,44685,45567,6862,17092,22509,44762,18648,45561,4686)
Unknown column 'np.person' in 'where clause'