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 (18353,45229,44531,24441,44878,13,17278,45051,31354,18172,44739,44745,45043,44765,18301,8753,17771,44875,44674,44711,17904,44869,44884,44775,17492,17601,44858,44849,18572,17335,44867,44866,17657,44762,5410,13425,18894,17092,36472,37267,3883,16935,28530,45567,5388,24438,14402,30986,45561,18794,44853,17237,13922,18237,44766,44764,44868,18430,10402,45262,17114,43800,14622,45072,6862,45177,44767,6782,3,44687)
Unknown column 'np.person' in 'where clause'