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 (28530,5993,6782,17839,13922,44861,44873,44878,45262,18353,36472,45277,24412,18648,17335,39676,17601,17835,17278,14622,5259,17009,44858,44855,44765,43800,44853,17981,44766,44640,44764,18301,24411,44866,24438,45043,44671,45229,44687,17771,30986,18172,45051,44762,10402,44849,8753,17657,45346,44767,44836,16935,44669,24441,30135,44884,45072,44745,17237,17756,44711,18185,18237,44845,44867,45518,18900,16885,19078,6862)
Unknown column 'np.person' in 'where clause'