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 (18172,44875,44685,5993,44766,17092,18794,45180,44861,17351,44845,16935,17904,45515,45072,18427,18996,8753,14622,45518,45229,18279,44689,44531,44836,28530,36472,45346,44711,6862,5388,44671,44745,17278,24412,44870,44858,30986,45051,18042,45262,45286,44873,18430,17009,44768,3,44878,13425,30135,44764,32454,17703,44775,44835,19078,14402,17755,22509,44869,18900,17657,18446,17981,17848,18237,18353,24411,18894,44669)
Unknown column 'np.person' in 'where clause'