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 (45515,18650,13425,44869,18286,44837,44674,18688,18794,45286,17556,44768,32454,18353,17351,44848,45346,44866,16885,16935,39676,19057,44855,18900,44689,44875,18427,45421,44764,14622,6875,45043,17114,44711,28313,24438,44765,44861,45518,17335,44845,17835,4686,44685,5388,18430,5259,9341,17601,44868,17755,45517,30986,45042,18648,3,24411,44671,45180,18894,17839,44873,44856,44767,34194,44687,6782,22509,3883,17009)
Unknown column 'np.person' in 'where clause'