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 (24438,18353,18286,22509,44689,44861,30135,45517,6862,16935,44768,44867,45072,9341,10402,18719,17601,13988,44685,17237,44873,18446,6875,44870,44849,18652,17114,18894,44875,5388,16885,45567,44866,45262,44674,5993,19057,44851,44856,44869,4765,44855,44531,44865,24412,31354,14622,45286,44711,45515,44765,44669,44739,44775,44745,44764,45177,44766,37057,18430,18301,17839,44863,17351,45042,18279,44894,30963,30986,18996)
Unknown column 'np.person' in 'where clause'