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 (45072,44640,17092,18648,6862,14622,28313,18172,30986,44878,18446,45516,44687,44851,37267,18794,19057,5388,44745,43800,18894,45229,13,45262,24412,17657,17904,44674,18650,17839,44875,18981,14402,44837,8753,17237,17848,5410,17756,37057,18719,24411,17981,44531,44866,44739,44766,18237,44867,18301,18286,45043,13988,30135,44856,17556,28530,6875,31354,45277,19078,18900,5259,17278,45286,45180,17492,3,18353,17009)
Unknown column 'np.person' in 'where clause'