Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (9341,45180,18648,44764,44674,17839,13988,18042,37057,44878,44739,24411,45515,44711,44768,18572,4765,13922,18900,44863,18172,17114,44853,45567,44767,44836,43800,17527,44855,17278,17657,17351,14402,14622,30963,45277,5388,24441,18794,17904,44868,44873,44866,45051,44849,34194,45561,17009,44854,22509,5259,44689,18353,10402,44685,45177,18237,6782,18894,37267,17237,17848,17771,44858,18688,44851,30986,44856,30135,17703)
Unknown column 'np.person' in 'where clause'