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 (18719,17755,18042,44711,17839,17703,45051,14622,18237,45421,13988,13922,18353,44866,44856,13425,10402,44858,6875,22509,44671,30135,45286,44669,18172,4765,44868,44878,44745,44835,6862,44870,37267,17335,28313,3,18446,18430,18688,44848,44768,17981,18572,45515,18427,24412,24438,18650,16935,3883,18648,17009,44674,44861,44855,44836,44863,30963,17114,44762,44869,45180,17756,45561,17527,18894,45072,17237,24441,5259)
Unknown column 'np.person' in 'where clause'