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 (44689,44669,18279,44685,44863,18185,45515,18719,17904,14622,18648,5259,37057,44768,16935,5410,39676,16885,44687,17278,45286,17835,45051,44878,17527,5993,45516,17492,9341,44775,18981,17092,18650,17601,24438,44884,17657,45043,45561,13425,45518,24412,44868,17351,13,44765,44762,44867,18286,44837,37267,18900,44851,24411,17755,44869,14402,18042,44767,17114,17771,18237,18353,45346,28530,30963,10402,45072,17556,44711)
Unknown column 'np.person' in 'where clause'