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 (3,43800,18237,6862,44873,44765,44848,37057,44853,17848,45561,34194,44685,19078,17981,45177,18301,45051,44669,45042,44531,18981,13425,13,45516,45229,44867,28530,24441,44868,5259,30986,44855,44866,44671,32454,30963,14622,44775,16935,18427,18172,18652,17755,44865,18688,17835,44745,45277,44863,17657,3883,17351,44858,8753,17335,18648,45517,37267,24438,22509,44849,18900,17556,44878,45180,18042,36472,45567,19057)
Unknown column 'np.person' in 'where clause'