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 (34194,28530,18237,44865,45042,17839,44685,18648,30963,44873,44870,44894,17556,5388,45177,30986,32454,44878,44671,3883,44875,44855,18172,17756,45229,17835,17755,10402,18572,36472,44836,44866,44848,18446,45561,18286,44853,45346,44835,44640,18430,18301,37267,39676,18894,30135,31354,45421,18652,45517,5410,44764,44884,18650,17351,44765,5259,18719,44745,13922,17904,19057,16935,45180,17657,18981,17092,44856,6862,16885)
Unknown column 'np.person' in 'where clause'