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 (18900,16935,18042,45262,44868,16885,17755,45042,18688,17278,39676,24411,6782,17527,44689,30135,13425,43800,44848,44836,44875,18353,44671,24412,5410,44865,44853,9341,44739,34194,45286,44775,4686,45515,44687,17237,18430,18237,6875,17839,31354,44861,30986,45229,18648,36472,44669,13988,24438,18172,17601,44640,44674,18719,44851,44870,45180,44858,14622,44856,45421,44764,17835,5388,44835,44768,17848,32454,17657,3)
Unknown column 'np.person' in 'where clause'