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 (17601,24438,5993,36472,44856,18427,17335,44764,17904,45286,17835,44711,45561,17657,4765,13988,17237,45517,19078,19057,44671,24441,17703,45421,13922,44853,18301,44687,44766,45180,44762,44775,44640,34194,17839,17556,37057,14622,44884,44873,45042,44685,44768,45518,18894,44869,16885,44855,44868,3,45051,17009,17092,44858,17492,44674,24412,16935,37267,45515,44835,18185,18794,18572,44867,18719,18900,18648,17114,6862)
Unknown column 'np.person' in 'where clause'