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 (19057,5388,44861,17981,10402,44711,18648,44775,13988,18237,17703,18185,19078,45277,44845,30963,5993,28530,9341,30986,44849,45229,18572,17839,24438,17492,44669,4686,18650,45286,18688,45262,17556,18981,14622,45516,18279,17092,17755,37267,44867,16935,45043,39676,44858,3,18894,44837,17657,44765,45517,18430,34194,17601,5259,3883,8753,44689,44851,18446,17771,45346,17335,18301,17351,44835,28313,6862,18172,44869)
Unknown column 'np.person' in 'where clause'