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 (17835,44711,44848,45043,34194,44894,45177,45518,44671,44861,45346,17657,5993,18648,44875,45042,6782,3883,18279,44873,44687,24438,4686,44775,17756,14402,18688,17335,18652,6862,18572,45561,24411,37057,45051,44764,44865,44855,18237,31354,18042,39676,6609,45567,45277,18719,16935,18650,44866,43800,13425,17009,44836,45515,17114,24441,44767,18794,44531,45262,44685,28530,18353,18894,18286,44858,13922,44745,22509,8753)
Unknown column 'np.person' in 'where clause'