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 (6609,18279,31354,44762,17114,18185,36472,44848,45229,44863,18794,39676,22509,18430,18996,8753,17492,32454,18427,17335,24441,18688,44854,44640,43800,17771,44835,45515,24411,37057,45421,28530,44858,16935,44867,18652,44845,44767,45072,44875,5388,44851,13,18301,45517,16885,6875,18900,45180,45277,19078,45286,45177,18719,3883,45516,9341,17756,24412,19057,44853,17092,18042,45262,45042,17657,44865,44878,18648,18981)
Unknown column 'np.person' in 'where clause'