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 (45042,44875,18446,44851,44745,45072,28530,44835,17981,44764,18894,4765,18652,18185,34194,13,44687,17335,44767,44768,45277,44711,44531,30963,19078,17839,3,18650,44669,32454,44855,44865,17771,17703,17351,16935,18719,44868,6609,44867,44674,4686,45180,44858,30986,17009,44848,39676,17601,37057,18042,44870,44765,22509,18279,44849,9341,8753,5388,44845,44869,44766,31354,45561,18301,45177,45515,18353,44856,44671)
Unknown column 'np.person' in 'where clause'