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 (44855,19057,44711,39676,43800,5259,44856,45072,28313,30963,45517,36472,6875,18185,17904,45042,44894,14402,17703,24441,44870,45177,17835,5993,24438,44867,17278,17771,45567,44775,45518,37267,17839,45229,18042,22509,16885,8753,44531,44687,17657,44671,18430,18353,17556,44674,37057,18301,44863,18427,24412,24411,44745,5410,13,17114,17848,45516,44868,45262,18794,44851,18900,44640,18650,44685,4765,44866,16935,14622)
Unknown column 'np.person' in 'where clause'