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 (45043,44765,44849,44768,17092,17601,44739,16885,18286,45277,44858,31354,44868,17278,5259,18894,24441,13988,18279,44848,18572,45177,6875,18301,45516,17527,44531,44745,10402,18996,17351,44854,17114,44685,45346,24438,44762,18237,44766,44865,18650,44866,5993,18652,22509,18981,6609,19057,28313,13425,17237,17703,17009,44835,37057,24411,44689,17904,30135,13922,44873,45518,17756,44837,45042,44836,44687,44894,44640,44851)
Unknown column 'np.person' in 'where clause'