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 (18894,17556,37267,45421,18572,18688,5259,18042,44875,18981,18648,44745,19057,44894,13922,44739,18286,18652,44878,18996,44531,17703,17657,8753,45180,36472,44863,17278,13988,44768,24411,44669,18430,44855,17114,6609,17756,44762,44848,44849,18719,24441,6862,30135,17771,45043,30963,44873,17981,44640,44858,9341,44765,17335,18900,44689,18427,18279,31354,6782,22509,17839,44870,10402,18301,30986,45516,32454,18446,45515)
Unknown column 'np.person' in 'where clause'