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 (45072,37057,30963,44762,18900,4765,17492,18286,44875,44861,16885,13,18446,17351,44836,44868,17771,5993,17278,30986,34194,45042,18648,9341,44765,24412,37267,44869,22509,18719,6875,24441,28313,44766,45180,18301,44768,44711,43800,44884,45177,44764,17848,18427,44671,36472,44866,18996,18279,44851,30135,18185,18572,45051,45043,44687,28530,6862,13988,44865,44849,44845,44848,44775,17556,18353,17092,5388,8753,44894)
Unknown column 'np.person' in 'where clause'