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 (45042,24412,18427,5259,17839,10402,17981,18042,16935,37267,45262,44669,44865,45516,18900,17755,5388,44861,18237,17114,24438,44878,24411,44873,5410,18279,19078,9341,17848,44875,44765,45229,34194,22509,44848,44711,17237,44671,18185,18172,3,44837,45180,44849,17771,30986,18286,44764,6609,18648,44835,6862,45517,18572,6782,18894,16885,17756,14622,44858,28313,44851,13922,44640,13988,44868,18650,17335,45277,44674)
Unknown column 'np.person' in 'where clause'