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 (18446,13,45229,44739,45262,31354,18301,14622,28530,44848,17492,45421,44854,6782,45517,17009,30963,9341,17335,30986,44855,24441,17771,44689,44851,28313,44873,45516,18794,17092,44711,17556,44687,5388,18981,45515,18894,18185,45277,45177,17835,44867,18042,44865,18353,44884,44765,18427,18279,45043,39676,18648,13425,18286,17657,6609,16935,17237,18688,17601,45051,44674,37267,8753,3,18719,5259,13922,5993,44837)
Unknown column 'np.person' in 'where clause'