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 (44745,18279,44867,45277,6609,17114,31354,13425,16885,44856,13,18794,44858,18996,17839,44863,34194,44894,13988,45567,44845,44764,24411,17601,18353,6782,44739,18185,44854,44669,44765,44674,19057,30986,44671,44835,45042,17278,18981,45229,16935,43800,37057,45561,17703,44768,44775,45346,17237,17835,18286,5993,17771,18572,28313,45516,44884,44851,45180,17755,18427,44685,14622,45517,13922,17904,5410,45421,18172,18648)
Unknown column 'np.person' in 'where clause'