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 (30135,18430,44894,22509,17848,18427,44845,44856,44858,6862,45561,44671,18719,3883,45072,44689,17981,13988,45286,17527,44640,5388,18353,44878,45042,17114,45346,44867,34194,43800,31354,17904,44739,17755,44853,44685,45177,44854,44767,37267,45262,44851,45180,17556,45517,44745,44875,44531,17601,17835,19078,32454,44836,6875,17351,18650,18981,18237,44669,24412,17492,18572,5259,44687,44711,17771,18301,18996,24411,13)
Unknown column 'np.person' in 'where clause'