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 (18652,45286,45517,44894,14402,24438,44745,44863,3883,44764,17009,13425,17839,44766,34194,45229,18648,17335,6609,17527,45042,18996,45567,45515,4686,44739,30986,6782,45561,5388,43800,45346,44866,18650,44835,37267,17092,6875,44685,17556,18572,18719,44689,18185,45180,44848,6862,17771,17351,44775,18900,5993,17703,17492,44849,10402,44865,44873,18894,18301,44858,44856,24411,44711,44869,32454,17601,18688,45516,5410)
Unknown column 'np.person' in 'where clause'