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 (44856,44711,17351,4765,17848,45561,18279,44531,18650,44894,44854,18237,44858,44766,18042,5410,31354,19078,45277,5993,45043,34194,43800,44640,13988,44762,44873,44687,44884,45180,18996,18981,17839,17756,44855,17527,44861,14622,17278,44745,16935,45072,17981,45517,37057,18353,6782,44739,17657,44671,17009,18286,5388,44836,30135,39676,24411,44849,17335,45262,3883,44870,44866,44685,18719,44767,44674,17771,24438,45177)
Unknown column 'np.person' in 'where clause'