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 (44739,45262,24438,24441,43800,8753,18172,44711,18353,45043,44669,44861,44856,16885,17492,17657,10402,17703,18185,22509,17756,18286,18719,37057,44867,28313,18652,17839,44745,14402,44854,44848,30963,24411,44687,44845,45229,17771,45051,45180,44768,44868,18279,18794,17009,5259,17527,44884,18996,13922,17848,44875,3883,45286,44873,44764,44767,4765,44671,13,30986,18237,17556,45277,6862,44836,44870,18981,45518,44762)
Unknown column 'np.person' in 'where clause'