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 (17092,45229,14402,34194,17601,44671,44849,44766,17009,45180,37057,17756,17981,45515,18446,44863,37267,13922,6875,44765,18719,31354,5993,19078,17335,44875,18042,18301,4686,44531,44845,17657,6782,44884,6862,17114,44866,44865,45177,44762,17835,18172,45346,44687,18286,16885,45277,10402,44856,16935,45561,18648,17237,18996,44894,44858,44837,45286,19057,18650,18353,8753,44745,9341,44739,45421,44868,4765,18981,44878)
Unknown column 'np.person' in 'where clause'