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 (22509,13988,18652,17839,4765,44766,18172,44765,18648,31354,44835,44861,44674,18042,36472,44858,44775,30135,17835,45421,45286,18688,24411,18353,18185,37057,45515,17756,17556,13922,45177,18650,6862,24438,4686,44894,19078,44640,44768,17237,44671,43800,44849,44685,45262,44711,44866,18572,18719,44531,44764,5388,17278,17755,45561,18301,44865,45277,28530,44687,14402,17492,3883,44689,17601,30963,9341,45517,16885,6875)
Unknown column 'np.person' in 'where clause'