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 (45051,44865,17703,24438,34194,6862,17756,24412,44870,45177,17492,18981,45043,17092,30986,44764,3,18286,44853,19057,45286,16935,17556,10402,44767,44861,18446,14622,44856,4765,44768,44745,44711,17904,45421,18353,44851,44873,28530,44845,18430,5388,44858,44875,5259,44863,43800,18185,17114,9341,28313,17657,44884,44765,39676,18237,44866,44762,44685,45180,18279,45517,37267,18996,17835,6609,17351,45518,13425,17278)
Unknown column 'np.person' in 'where clause'