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 (44768,44671,45229,44745,44837,37267,3883,8753,17492,6782,45561,44854,18650,44856,44687,5388,18794,44875,18427,44531,17703,37057,44870,18688,5993,44894,18894,31354,17601,17839,44766,24411,45518,44762,34194,36472,44863,4765,17278,13,18286,28313,18900,24438,44767,45421,3,14622,19078,6862,24412,45043,30986,10402,18981,45051,17009,44848,44685,44640,18572,44711,17835,17904,45286,17755,19057,44669,44858,22509)
Unknown column 'np.person' in 'where clause'