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 (6875,13,44849,18286,18427,17771,17527,18572,44851,45346,16885,44863,44894,45262,3,45043,14622,44854,44765,17556,44669,44869,45042,45421,17703,45072,5388,10402,24441,24411,44845,17278,19057,45051,44775,5410,44855,44878,9341,5259,4765,18353,18652,17237,17114,13425,22509,45180,44689,44671,17848,18900,13922,44674,18042,17009,5993,44745,17351,45515,17601,44868,18430,44739,8753,44685,28530,44531,16935,17492)
Unknown column 'np.person' in 'where clause'