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 (4765,44767,44674,39676,3883,10402,44856,18572,18353,6862,18446,17351,45042,17335,44669,44851,45180,44869,44671,14402,18185,8753,5993,44849,17981,44863,44866,37057,44845,6782,18301,18237,45277,6875,13,5259,17278,44739,17657,45051,24438,44837,44762,44878,13425,44711,44835,5410,45515,18652,16935,30963,45043,13922,45516,18286,17839,44868,17092,18172,18900,44687,17601,18996,14622,18688,44531,44689,43800,44884)
Unknown column 'np.person' in 'where clause'