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 (44669,44835,44671,44870,17657,30963,19057,5388,44531,24438,44766,44866,18652,18172,44875,18042,45262,44765,44674,45346,13988,18237,16885,18286,24441,45517,5259,24412,18996,44851,44894,44767,6862,32454,18894,18648,44867,44849,18353,44836,44854,44861,44845,18572,8753,16935,13922,44768,45515,5410,37267,44878,44848,28313,43800,17981,44884,6782,44745,17771,30135,18981,17556,24411,4765,17756,45043,45051,18794,28530)
Unknown column 'np.person' in 'where clause'