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,17351,17527,18900,44765,44845,44764,36472,44836,30963,17755,44671,19057,24411,17556,44766,44855,18688,18301,16885,45051,45072,37057,18353,18650,17756,9341,17601,44873,6862,45517,43800,44870,6875,17335,45561,6782,44878,44531,44867,44669,17703,45180,18185,44837,44739,44768,17278,18446,18894,45177,44711,44849,32454,45515,44869,37267,44875,44745,28313,44762,44884,13988,44689,18996,45567,44868,17009,18652,45262)
Unknown column 'np.person' in 'where clause'