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 (44767,28313,44739,44669,18688,18185,44768,44835,30135,44640,44866,5259,18286,44867,45517,45043,13425,45567,24411,44849,44858,45561,24412,14402,44711,37057,44836,45516,44868,44745,17335,6875,44685,17771,45042,24438,43800,30963,22509,45286,8753,44764,18650,3,44687,31354,6862,18996,34194,45262,44861,18981,18648,9341,14622,17009,18719,17492,44865,45346,17556,36472,17756,18042,18279,5388,18237,18301,16885,18652)
Unknown column 'np.person' in 'where clause'