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 (18042,13988,44894,17237,44687,44845,3883,17839,6609,44848,17278,24411,18650,24441,44762,18794,44669,28530,44849,36472,17335,44835,44764,17527,13,17114,17703,17771,6875,18648,44878,16935,24412,44863,24438,44854,45177,44739,44861,37267,3,18981,18996,18286,28313,17351,9341,31354,45346,17009,44855,44745,44865,30986,17904,44867,8753,17848,44640,18900,45051,45517,30963,44884,44765,17756,44711,18894,5410,19057)
Unknown column 'np.person' in 'where clause'