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 (6875,17556,18900,44711,17237,44767,44849,18353,44674,45262,18301,18572,44837,5993,18719,18427,4686,45421,24411,17771,28313,17351,31354,14402,17703,18981,37057,45517,6862,18894,18996,44835,3883,44884,44669,16885,17981,24438,5388,44768,44856,45286,44845,30986,5259,45516,4765,45229,22509,18430,18185,36472,45346,17335,17755,19057,44739,43800,44861,44836,45561,44745,44866,44766,18286,9341,18794,13922,44863,34194)
Unknown column 'np.person' in 'where clause'