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 (44674,17114,17556,45516,44855,45561,14622,44853,5388,18650,18900,18279,18794,6609,44745,44884,24412,44765,17904,18996,45051,17351,13,45072,14402,44894,17756,17839,44845,6782,17278,44851,44531,18572,24411,19057,44867,45262,18430,45515,30963,3883,44669,45177,44764,18286,44878,45043,18237,17848,45346,17009,45421,31354,44767,32454,17092,44863,44861,13988,37267,18353,17492,28313,39676,44685,18172,44835,17771,37057)
Unknown column 'np.person' in 'where clause'