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 (43800,13425,10402,44863,17835,18446,17009,45277,19078,18353,5410,45072,45346,18650,6875,44745,45516,3,44855,13988,17839,45043,44767,18286,16885,18719,18185,44854,45561,44894,18894,13,19057,44764,4765,44531,44870,24441,13922,45517,44861,39676,6609,17703,45515,5388,44765,18427,17237,17657,45286,17755,45229,44865,28530,17335,45262,44674,14622,45180,44669,44869,18237,18430,44837,34194,18172,16935,45042,18648)
Unknown column 'np.person' in 'where clause'