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 (18185,44711,44671,18430,44866,44858,17756,13988,6862,44765,17904,13425,6609,4765,17335,13922,37057,44739,8753,45042,44836,17755,16935,44766,24411,30986,28530,24441,45567,4686,44845,37267,17839,18286,44685,18446,34194,44854,18427,44869,18042,3883,17114,18996,44851,18648,18237,44674,28313,44762,18900,10402,44849,45180,9341,45517,44855,17092,16885,24438,44764,45561,18652,45516,19078,17527,17601,43800,44531,17556)
Unknown column 'np.person' in 'where clause'