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 (44849,6609,22509,18996,44685,17492,32454,44775,44869,45043,5259,44873,44765,44865,30135,44878,10402,16885,45421,45262,44853,44894,24441,13988,18900,18237,18353,6862,44866,34194,17092,13922,17237,24438,17114,19078,45177,44669,45051,45515,36472,44640,17835,28313,18286,44531,16935,18279,44745,44671,31354,18430,44845,17657,18794,17848,45042,30963,18650,4765,44875,17351,45567,44739,5993,45516,3,44854,18172,17981)
Unknown column 'np.person' in 'where clause'