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,18900,44837,14402,44865,44764,13,18430,45180,17278,37267,44674,17848,5259,45561,44870,18996,45177,18185,17335,30135,18301,17771,44894,24441,45517,28313,44854,45072,17114,44669,44878,28530,44853,17835,17601,24412,13988,45262,45051,6782,4686,44775,6862,10402,17657,17839,44765,18172,37057,44531,18894,44875,44745,44849,44640,32454,44856,17351,24438,44855,17492,24411,18286,45043,18650,45567,17092,5993,5388)
Unknown column 'np.person' in 'where clause'