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 (6862,28313,17771,14402,5388,17703,3883,18301,13,44531,44884,44671,24441,45043,44858,9341,45346,44848,44878,18648,44745,44894,18650,45262,45421,6782,44669,18353,18794,45229,32454,18446,17009,44640,45517,19057,17756,18719,17835,31354,18430,44856,4686,44855,44768,37057,44875,5410,8753,18427,44853,13425,44837,45042,43800,18185,24411,3,36472,4765,24412,44851,5259,44868,17657,44854,45567,44762,44845,10402)
Unknown column 'np.person' in 'where clause'