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 (31354,30986,45516,44849,44837,22509,44766,18794,17755,5259,44689,45517,18572,45051,45262,8753,44685,45518,37057,24411,18185,17904,14622,44687,6862,17771,17703,44875,37267,17092,44669,17657,45515,44768,44865,18353,45346,14402,18427,44835,18286,18981,45421,17848,18430,44775,4686,9341,44739,45042,18650,3883,45286,44884,17351,17981,5388,17556,44855,19078,45177,16935,39676,18237,34194,44867,44845,19057,24438,45072)
Unknown column 'np.person' in 'where clause'