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 (14622,44848,44894,44863,45262,19078,18172,16885,18648,6782,44836,44845,45518,44858,17657,45180,3883,18446,44685,44873,44875,44869,44853,18279,18430,37267,13922,18353,13425,5993,18427,45051,5259,31354,18652,17351,18900,17981,8753,18894,39676,36472,10402,44849,44762,17601,44745,24411,44711,44669,28530,37057,9341,17556,44766,44689,17114,16935,24412,6609,44878,17527,17904,13988,45042,44867,18042,34194,28313,18286)
Unknown column 'np.person' in 'where clause'