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 (17009,44762,44851,18900,24441,44764,18446,13,14402,5993,17601,44884,37267,44765,44689,3883,44865,44866,17904,44867,5259,17492,4686,13425,45262,17278,44878,44674,28530,17351,44853,45072,44835,18185,5388,18172,18794,45561,18648,44739,24411,24412,17556,44868,30135,17092,44858,34194,18719,18279,4765,18042,45518,17981,18894,44863,18286,44766,17839,44856,14622,17756,30986,44669,44711,44848,44745,45516,45042,44873)
Unknown column 'np.person' in 'where clause'