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 (36472,24441,13425,44845,18652,44858,44869,3,17601,44531,45180,44689,24412,18430,37057,28530,19078,45561,44870,17848,44875,13922,44861,44765,44739,44856,44854,44878,13,44837,44745,17756,44894,44865,17703,9341,44873,4765,17771,18185,18172,10402,45043,44671,17657,24411,17755,45042,18446,5259,18688,17556,44853,44868,45277,44848,44640,18648,44685,14402,17237,31354,6875,30135,45421,44674,44687,14622,18719,18650)
Unknown column 'np.person' in 'where clause'