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 (44837,45177,17601,18648,18996,24441,44855,18900,44531,44640,6875,17092,44836,43800,17756,17335,17492,22509,44775,44669,45561,17904,44848,24411,45518,44767,45277,18172,45567,8753,44869,28530,44687,44762,19078,44745,18286,44867,44689,14402,17703,45229,18353,16935,17556,44764,5993,45051,45042,17278,24438,30986,45346,18652,13988,44865,17527,9341,17835,44878,18650,5410,17839,44884,44873,44853,44875,37267,32454,44849)
Unknown column 'np.person' in 'where clause'