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 (44845,18981,44765,44745,17527,18446,13922,36472,17756,45561,44775,28530,45277,44866,44689,44867,18185,22509,44669,44869,45180,13988,19078,18650,31354,44870,16935,44875,17848,44531,44835,18172,5388,6875,6609,3883,18894,44858,45177,18430,44868,18042,44855,5410,17492,44671,45229,14402,44851,24441,17556,18648,19057,17009,45421,45042,17771,44894,17904,43800,17335,18286,44767,18427,17278,17114,24412,17835,17981,9341)
Unknown column 'np.person' in 'where clause'