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 (18427,44851,18572,45515,45518,18688,44863,44869,37057,24438,10402,30135,45180,18042,17703,18719,5410,43800,44671,8753,17835,45043,44765,45346,44878,44531,18894,44849,18279,45286,18981,44866,22509,44873,39676,45517,13,18996,44870,3883,44894,17601,44837,18900,44762,18172,24412,24441,16885,17981,5993,44689,45229,44685,45567,18648,14622,18650,44745,5388,9341,44858,17237,32454,45421,45561,13425,17335,44854,44875)
Unknown column 'np.person' in 'where clause'