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 (44884,18794,45346,6875,44856,8753,45042,18900,44766,30135,44837,17848,37057,43800,19057,44875,44861,44867,13922,44745,18572,17601,24441,34194,44768,18446,44767,24412,18427,44775,44669,44711,32454,18650,17703,5410,18042,18719,44685,17009,45518,44853,14402,18286,4765,13,17335,30986,45051,17981,13425,17114,28313,28530,30963,18894,44851,45286,44878,44894,44836,44865,5259,44739,17527,44855,45177,16935,9341,3883)
Unknown column 'np.person' in 'where clause'