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 (17492,44669,44854,30986,19078,45277,17848,45517,39676,8753,44873,18900,17237,9341,18042,4686,37267,17839,45043,17981,14402,22509,3883,5388,18688,44845,24438,30963,44640,16935,18279,45229,44855,44851,19057,44762,18996,24411,44849,44868,24441,17351,17657,44837,44767,18185,45515,44711,17756,44765,18650,17092,45561,44869,45286,18301,44739,44745,18172,44764,18237,6875,18353,3,34194,16885,44858,44894,44861,44875)
Unknown column 'np.person' in 'where clause'