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 (45561,44640,19078,44836,44867,44685,44669,44868,44674,18286,39676,10402,17703,44849,44745,30963,44894,45042,44858,18652,3883,16885,24412,18794,45421,44762,45346,28530,44689,18719,44671,45567,17755,44869,17835,44739,17527,5993,17756,24411,17335,16935,17771,17601,18042,44884,44767,13425,44851,44863,17904,18572,6862,18981,5259,4686,8753,44866,44687,32454,18894,13922,5388,17278,44878,18185,18353,45286,44870,34194)
Unknown column 'np.person' in 'where clause'