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 (44836,44685,17839,44868,18648,45051,18446,18279,45561,16885,44766,45516,44671,45072,6875,18172,18794,18427,24412,17556,6782,17601,18719,17657,45262,30135,28530,44687,45042,45518,44845,32454,44768,45229,44848,6862,45277,44870,3,18572,44745,44851,13425,43800,18286,39676,31354,17237,44762,44531,17755,45346,14402,44689,45180,44739,44858,44861,45517,28313,17009,45177,17835,44855,24441,44711,3883,44866,36472,18688)
Unknown column 'np.person' in 'where clause'