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 (24411,44873,44856,16935,14402,17601,44745,44766,44867,44835,31354,18237,24438,44671,5388,28313,45042,44640,18353,44689,45262,17981,17703,17657,45346,17009,44739,17092,44851,18286,44768,17278,18719,17527,44848,39676,45072,44845,44884,45286,44711,44863,8753,5993,19078,13922,44869,3883,44775,45561,45277,44875,44762,14622,45180,6875,13425,18981,18172,45421,17351,10402,44669,17755,19057,43800,4686,44836,18279,44531)
Unknown column 'np.person' in 'where clause'