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 (45229,45346,18172,17527,45561,44863,17278,18430,18353,19078,44845,45277,30986,34194,16935,45567,18279,30963,45518,18237,44858,45515,44739,45043,14402,30135,6782,17839,24438,18648,18794,45286,44861,45051,44866,3883,13988,8753,17756,18042,44767,17335,44765,17657,44674,22509,17771,44854,44884,17114,44849,44878,31354,24441,17904,44685,44894,18301,43800,44856,5993,18688,17601,17755,45516,45042,44531,16885,37267,28313)
Unknown column 'np.person' in 'where clause'