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 (18279,16935,18042,45180,44745,37057,17237,6875,17351,44863,18996,44768,44640,18688,13988,44835,24438,9341,44764,18286,44870,45277,44855,44739,45043,13922,32454,18237,44868,44853,24441,17771,4765,44775,45561,17981,13,44685,44875,45229,44845,6862,44884,13425,45346,45517,17756,39676,36472,30986,45516,37267,18572,17009,17492,6609,28313,8753,44762,44711,14622,18172,44766,45262,18652,43800,17114,45177,30963,18353)
Unknown column 'np.person' in 'where clause'