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 (19057,45180,6862,18648,6782,24441,44884,17981,44685,45043,44762,17527,28313,44863,44868,44869,17848,16935,14402,45421,24438,44858,28530,18572,13,45567,16885,6875,17657,44894,17835,44687,22509,44768,45072,17556,10402,17278,5388,44853,44873,44861,18279,44745,17771,44739,45517,44865,44836,17237,39676,37057,19078,44767,14622,44765,44855,44856,3883,18172,45229,13922,18719,18237,17009,44669,17904,45286,45051,17755)
Unknown column 'np.person' in 'where clause'