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,4765,17351,18353,45043,9341,17556,45180,44848,45286,44685,17755,44858,17601,17981,18427,17237,44855,44861,45346,13988,18446,45515,39676,44531,16935,44764,18430,44836,45177,44851,14622,44863,14402,6609,44853,17703,44869,44878,18894,18650,10402,8753,18279,30135,45516,5259,44766,18688,17657,18996,44689,3883,45561,6782,44875,34194,18572,19078,44868,44711,18172,44687,32454,13922,28313,44640,36472,17771,44884)
Unknown column 'np.person' in 'where clause'