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 (30963,5388,44711,44685,30135,4686,5993,28530,44875,44745,18900,44640,14622,44689,45286,45051,24412,44671,17848,18172,45262,45180,44764,16885,17657,43800,44849,44687,6862,18430,13425,32454,44867,45561,18286,45421,14402,45042,17756,18648,44853,44739,44870,44531,6782,18237,17835,44884,44766,44765,18996,9341,3883,18688,13988,19078,45516,18353,37057,45277,45177,44858,18185,22509,24438,44836,6609,44856,44835,30986)
Unknown column 'np.person' in 'where clause'