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 (16885,44711,44863,17756,18353,45515,44873,17601,44848,44853,37057,44640,45517,18650,14402,45518,14622,44867,13425,16935,44858,30135,17848,44674,4765,5259,18286,17492,44685,19078,39676,45051,44766,34194,18301,44866,44835,24411,44865,17771,44870,45421,31354,17755,45262,17237,44884,45042,44762,24438,32454,28530,18042,44861,36472,44845,4686,5993,44768,43800,44669,9341,44837,44765,19057,44531,44745,44878,18572,45177)
Unknown column 'np.person' in 'where clause'