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 (5410,16935,18301,44745,45180,24411,45515,30135,17981,17237,19078,45286,45072,18042,44873,45229,22509,17278,37267,45177,4765,39676,18427,17492,18446,44531,45421,13922,45517,18688,3883,45262,44849,44836,14622,18648,18572,17839,17556,43800,44855,18894,17848,14402,17756,44868,36472,17335,45561,30986,17771,45518,17092,18286,17351,24441,24438,45051,16885,17527,17009,18996,24412,17657,44856,45277,18900,44768,17755,45042)
Unknown column 'np.person' in 'where clause'