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 (45286,44875,18900,45177,18894,44853,17556,44866,30963,44854,13425,19057,39676,45051,45516,44711,44878,44856,17839,18237,44531,44848,17278,18981,44884,22509,44873,43800,44894,6609,17848,45515,3883,18719,45180,18430,17657,17601,6862,17335,5388,28530,19078,4765,44765,44855,44835,14402,13922,37267,13988,5993,18279,34194,44849,37057,45561,18996,24441,44861,44689,45229,44762,44766,45518,17771,44669,44775,17237,44687)
Unknown column 'np.person' in 'where clause'