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 (44687,18648,45072,22509,45229,18427,44640,18185,28313,36472,18042,44851,44836,44870,18652,17351,45567,17755,44837,18894,14402,5993,10402,31354,6862,37057,17237,44674,45516,45042,8753,44685,18301,44671,44669,17092,44894,44865,17771,32454,6875,18688,24411,44531,44849,45262,17556,18430,45043,17657,44764,44765,5388,9341,16885,18572,44835,17981,39676,44875,44745,13425,3,4686,18981,17492,45277,45051,44866,44861)
Unknown column 'np.person' in 'where clause'