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 (18981,17601,18353,13988,13,45567,45421,14622,32454,44858,17092,44775,17755,16935,6782,44861,3,34194,44855,16885,24438,44854,6609,14402,17839,18427,44851,18279,44640,30963,44863,17335,45516,44745,17492,28530,45051,17657,45346,44687,44739,45042,18172,24411,5388,43800,30986,44531,44845,44878,44766,18650,45561,39676,18794,18042,44711,37267,44849,28313,44767,17771,44870,9341,45229,18900,17556,44884,5410,44866)
Unknown column 'np.person' in 'where clause'