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 (44866,36472,44766,17904,39676,44884,18286,17009,22509,44865,45286,44739,44845,18430,6609,44711,18301,44669,13425,43800,18794,24412,44853,45277,13988,44689,17657,17351,6875,17756,44851,44854,18172,44894,5259,44878,37267,18981,17556,17839,44863,13,28530,44674,45262,14622,8753,45516,44775,18237,3883,37057,45421,44849,17771,44765,18900,44745,45042,44875,17335,44837,44640,44685,14402,44856,45561,44836,19057,44762)
Unknown column 'np.person' in 'where clause'