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 (44845,17755,5993,18427,31354,45051,17981,44765,17601,44867,24412,17904,17278,44884,45180,45072,45567,45043,17771,13988,45517,44875,6875,44531,44640,44870,44685,45229,43800,45518,34194,44858,13425,44671,6609,44866,45042,44764,18042,44849,18794,32454,17556,45561,19078,44837,22509,44689,44767,18279,13,18688,17237,18650,44854,4686,17351,44863,6862,14622,44766,44739,45346,44711,18286,37057,17848,8753,36472,44687)
Unknown column 'np.person' in 'where clause'