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 (44867,45286,17755,14622,44671,18237,6609,44765,44855,44869,18996,30135,45180,6875,44739,44866,22509,28313,18794,18042,31354,9341,17657,45346,18446,44878,14402,44853,17904,44768,45043,45515,17092,17756,19057,18719,44689,18427,44848,18572,45051,44894,45262,5388,44762,44687,24412,18286,17981,44775,13425,3,44531,44685,18900,6862,4765,45561,44837,44849,17009,17237,6782,18172,43800,44711,17835,18301,37057,32454)
Unknown column 'np.person' in 'where clause'