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 (34194,44837,6609,37057,45042,45518,17009,18652,5993,13,5410,17657,3,44851,18894,18572,18279,44685,3883,44856,44531,44858,18172,18042,45567,18688,24412,18996,45517,24438,9341,45262,18794,44836,45277,45515,30986,44669,44873,6862,17755,44869,18900,37267,17278,45051,44775,44884,44868,13425,32454,17556,6875,44674,17092,17839,18286,44671,44739,44835,13922,44870,44764,18185,30963,17351,17492,44848,44875,45346)
Unknown column 'np.person' in 'where clause'