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 (45561,44689,5259,45229,45042,17335,24412,44868,30135,14622,30986,44865,10402,17492,17556,44739,13922,6609,45051,45517,18648,44855,44875,6782,37267,18794,28530,44848,32454,18894,14402,44531,17351,44836,44767,44878,44745,5993,44775,45567,44687,17981,44884,18279,36472,17278,17839,19057,24411,43800,45262,18719,17092,44849,45180,17756,45043,22509,17237,13988,17835,45516,13425,44851,44867,44837,44894,6862,37057,4765)
Unknown column 'np.person' in 'where clause'