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 (44854,14402,17556,45180,44687,30135,5410,34194,44858,45515,5259,37057,30986,44835,3883,44768,18279,24411,10402,17703,44856,45177,18430,6875,18900,17981,17601,44531,44685,44867,9341,44640,32454,44765,44836,17335,16885,44745,13922,44865,45346,18572,45518,17114,44861,45051,17657,24441,6862,18688,17492,44875,18237,13988,44711,44851,17756,45286,16935,45043,3,44764,18427,44689,18185,6782,36472,18301,18894,24412)
Unknown column 'np.person' in 'where clause'