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 (44851,45518,44767,17981,44853,45286,18652,17904,45561,24411,45516,44766,17848,17756,44866,39676,14402,6782,18981,17835,45042,44854,18427,5410,44856,16935,17492,28313,17092,19057,10402,45277,44835,13922,44640,3883,32454,44848,45072,19078,44878,44836,44745,43800,44837,17771,18237,36472,18430,17657,44875,18650,5993,17556,44762,5259,44849,45229,44845,5388,18286,44685,44868,37057,3,22509,34194,44711,45262,44765)
Unknown column 'np.person' in 'where clause'