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 (5388,18286,16885,44765,13,44685,4686,44531,44849,44669,17009,44674,44764,5993,18446,44867,13425,6875,6782,45518,24441,44837,44762,17904,24438,45286,36472,17755,17492,10402,44866,18652,18042,44745,44870,28313,45516,44739,19078,45229,18981,44835,45346,13922,44878,18185,22509,45177,31354,13988,44894,44869,17092,18572,9341,3,17981,19057,18427,44848,44861,44873,37057,44845,18353,17114,44856,18172,18650,17237)
Unknown column 'np.person' in 'where clause'