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 (6875,5259,6782,36472,44855,43800,14622,18185,17657,44775,45517,44687,44837,18894,17756,4765,45561,44764,17114,18172,17981,44745,13,44856,44674,44739,37057,13922,24441,45567,44854,24438,18996,6862,18237,44767,24412,45515,45177,17009,44835,18652,45180,44848,10402,44878,44853,44689,17601,17527,18286,45286,37267,44640,13425,44766,16935,30135,17237,17351,45262,44866,44873,22509,28530,18900,44671,44861,44863,44894)
Unknown column 'np.person' in 'where clause'