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 (10402,44848,18652,44669,17278,44866,18650,5259,17657,44775,44851,18794,18996,17556,44765,14402,45515,45421,17527,5993,44875,18894,18172,44689,28530,44894,34194,44762,44674,17601,39676,44869,45051,30963,17492,44711,6609,3883,19078,6875,45567,17703,45346,44671,43800,14622,44858,44845,44745,45043,4686,24438,18446,44849,44739,45177,44873,17771,4765,16935,5388,44854,44863,22509,6862,44856,24441,44870,17114,13425)
Unknown column 'np.person' in 'where clause'