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 (44894,17492,30963,44768,44669,44711,44868,44878,18900,5410,17756,17114,17278,44861,16885,3883,44858,8753,31354,45286,44856,39676,17335,44687,36472,17556,17527,24411,18279,45346,45177,45042,18719,45515,45277,44762,18353,44689,24438,16935,17981,44764,32454,45051,30135,13988,30986,37267,3,13,17601,18996,18648,44875,45561,18572,44745,18286,45516,28530,18446,18688,5259,44884,9341,18794,44739,44870,17771,18172)
Unknown column 'np.person' in 'where clause'