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 (30135,18688,30986,43800,5259,44894,44669,44848,45346,18042,22509,45518,45072,18353,14402,45262,5410,44878,6862,17351,44762,44865,37267,45277,18427,17278,45286,18894,24441,44764,44767,44884,17009,36472,45180,44855,32454,18652,44837,16935,45051,44711,18648,37057,44856,45567,24438,19078,17237,44531,44685,17114,45229,45516,44868,17527,13425,44745,4686,17657,44739,17981,18900,17848,17835,44766,5993,14622,44836,17601)
Unknown column 'np.person' in 'where clause'