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 (44762,44687,45567,17904,5388,44867,44865,18427,34194,17839,16935,37057,45180,28530,44855,18237,17703,3,45177,17351,45516,13922,45043,45561,44739,31354,17756,17657,5410,45515,43800,17771,44685,18719,18996,44845,18648,19057,44640,45517,45518,18900,45072,45286,44674,17601,18353,44856,44531,13425,44861,44884,17527,18279,44711,30135,17237,17114,44863,19078,44766,44835,44851,44765,44875,9341,16885,18185,6609,45229)
Unknown column 'np.person' in 'where clause'