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 (44775,17114,37267,17351,44745,13922,18172,18652,44768,17839,8753,44848,17771,45277,45518,17981,44863,17335,45180,18353,44869,24438,45042,18430,5259,44866,18648,13425,44671,45567,16885,18981,36472,14402,44640,44669,45421,18894,44870,44739,44854,44878,13988,44674,28313,39676,17835,17904,14622,18042,44835,44858,44685,34194,44884,19057,6782,44861,44865,17092,44687,45262,30135,37057,44873,45517,5388,17009,18237,4765)
Unknown column 'np.person' in 'where clause'