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 (18042,44531,17092,17278,44894,45517,44863,18237,4686,13922,39676,44835,14622,44775,6782,45051,45277,37057,45516,45286,4765,17114,17351,17848,44845,44869,18427,44855,18185,43800,44851,9341,44745,17657,44875,36472,18794,44762,17771,18688,44884,45346,44861,44765,45421,44671,17839,44873,44768,44849,44689,18900,8753,18446,24438,17009,44878,14402,30135,45072,18353,45262,44711,37267,44868,22509,32454,18894,44848,17904)
Unknown column 'np.person' in 'where clause'