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 (8753,17601,44764,18427,45561,18648,18286,44851,30135,6862,17114,44531,45516,45051,44689,44858,45229,18042,16935,9341,5259,18237,17703,5388,5993,18446,45517,17904,37267,44766,44866,44687,45072,17351,18996,44854,18430,18301,45262,44861,18894,44837,18650,18353,17756,44685,17755,13922,4765,45042,45286,39676,13,44868,45180,44836,17237,44878,17771,44671,44845,45346,17657,6782,30963,44884,44848,13425,45277,18900)
Unknown column 'np.person' in 'where clause'