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 (18353,16885,30986,44845,28530,17009,43800,17335,44685,18237,13,45262,5410,5259,16935,44768,44855,45515,30963,18279,44868,45277,39676,18301,44837,45042,37057,44689,18719,44766,17703,28313,18794,24438,45346,44884,45286,45516,18900,5388,18650,44669,45561,18894,5993,44739,6782,44848,44851,44853,44745,17981,17527,44687,22509,18446,18042,44835,10402,44849,18572,44894,37267,44836,45229,17114,18652,17092,18996,6862)
Unknown column 'np.person' in 'where clause'