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 (5259,19057,44867,18648,17839,4765,45262,13425,44865,44762,24411,45277,18794,44854,45177,4686,44739,37057,44861,30963,24438,17092,45515,44875,18652,44837,17237,17848,28313,44689,13,18446,44836,45072,44848,31354,44640,44764,18688,17755,18981,44671,44765,44878,45567,17335,44687,6875,14402,18650,45517,44669,28530,44711,24412,10402,44858,44870,18719,17835,18427,44851,44775,44674,44855,18042,18279,8753,17492,43800)
Unknown column 'np.person' in 'where clause'