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 (44687,13425,39676,3883,19057,44894,17009,44868,6875,44863,18185,44837,44870,5410,44865,14402,18353,45177,44669,44766,18688,44855,16885,17335,45515,32454,18652,13922,44745,6862,17755,44866,4686,17703,18900,45567,31354,17601,43800,16935,8753,6782,44762,24412,18572,17981,30963,13988,17237,44848,44867,44869,44884,18301,3,44689,44671,17904,44711,45043,9341,14622,37057,44739,24438,44854,44858,18427,18996,45277)
Unknown column 'np.person' in 'where clause'