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 (3883,34194,5388,5410,44640,6862,45051,17492,44745,44768,45180,18900,44739,19078,18572,22509,17278,18185,45229,45517,17703,44531,17556,44858,31354,6782,44867,17848,44689,44711,17904,18648,44775,44865,30963,28530,44863,44848,44764,24412,45346,18237,44873,44685,44765,45043,6609,17839,5259,18279,18894,45286,18042,14622,24411,45042,44853,18427,37057,17835,44669,45421,44878,30135,45072,44671,44687,44851,17657,30986)
Unknown column 'np.person' in 'where clause'