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 (39676,5388,17556,17755,44845,13922,24412,4765,17009,17601,18301,17092,16935,45516,8753,24411,44853,44867,34194,18981,44855,45421,36472,17278,6875,45177,44873,3883,17114,18279,18650,5993,44875,5410,24438,45042,44861,45051,30986,44878,44745,24441,13,43800,17703,17904,18427,44863,45346,18652,28313,16885,44671,45072,44689,17237,19057,37267,44849,18648,45229,18572,44848,44765,45518,45515,14622,45262,18894,13425)
Unknown column 'np.person' in 'where clause'