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 (45286,5259,18430,17771,17657,5993,37267,18042,44767,44745,44837,17981,18353,5388,6782,44768,44866,13425,4686,45072,37057,44858,32454,44855,24411,44870,45177,30986,44875,17278,45346,17556,18794,44764,22509,17114,24412,44765,17601,17492,44851,45042,44836,6862,44865,30135,18650,18286,28530,44868,44867,44856,16885,44863,34194,17755,3883,3,44640,24438,18900,45516,44854,28313,14402,44878,44775,17009,18172,44861)
Unknown column 'np.person' in 'where clause'