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 (18719,44868,44861,44848,36472,44687,44669,18430,17771,44745,44835,17009,9341,45421,14402,44884,19078,45180,44768,44764,16935,44865,44711,17492,18427,5993,31354,44674,18894,45177,18648,18237,18446,17237,18042,44875,45286,44689,44845,6862,13922,24412,44685,45072,19057,17755,17703,17848,22509,3,44762,3883,45517,17835,44856,37057,44878,45229,13425,44867,44870,44775,30135,44873,17904,18652,18900,8753,18996,18279)
Unknown column 'np.person' in 'where clause'