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 (45518,45042,24441,37267,44768,24411,22509,37057,44866,4765,44865,18237,44863,44775,18719,44766,17092,44867,18185,45051,18572,18648,6875,14622,34194,17904,45180,30963,44870,17237,17756,44837,19057,44765,17351,16935,45517,28530,19078,13988,44845,45567,44685,18279,17009,44531,44669,45043,14402,18446,18794,44878,44868,44894,3,18353,6609,24438,44861,45072,32454,44671,17981,18900,13922,18981,36472,18172,44835,44689)
Unknown column 'np.person' in 'where clause'