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 (28530,6862,45561,18572,44775,44861,6609,44766,45043,18427,44854,5410,19078,18688,18981,18286,17703,44687,24438,18430,17657,18301,44866,17904,24441,45346,13425,44835,44869,17848,44853,44531,17601,18172,18237,44767,17839,14622,3883,43800,18652,45286,22509,44671,17009,44875,19057,17492,44865,17755,45229,5259,34194,17335,3,18996,44711,39676,5388,24411,44878,18648,4686,45517,16885,45567,17237,18042,16935,44745)
Unknown column 'np.person' in 'where clause'