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,44640,17756,18427,17703,44878,37267,18172,44711,18279,44671,45072,45561,44765,45518,18301,18981,18572,13425,18237,37057,6782,28313,17092,18430,45286,17556,44858,18185,18652,18688,45567,43800,28530,19078,24411,18648,14622,17527,44689,39676,45051,44868,3,45277,17009,45516,30986,30963,17657,13988,17278,30135,17114,24441,44531,17237,17335,44855,5388,18446,16935,44767,44768,44875,17839,44836,44685,17601,44848)
Unknown column 'np.person' in 'where clause'