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 (18794,18286,44711,18900,44873,17492,44866,18353,45515,17092,44863,13,44674,8753,17009,18688,24438,44640,28530,6875,22509,5259,45561,4765,44768,44884,28313,17981,45177,18648,5993,44875,18042,44739,36472,45286,17601,44848,9341,45517,6862,13988,34194,18652,14402,39676,44669,44854,45229,44858,3883,45277,14622,18185,44685,30986,45262,45421,18301,17904,24411,37267,17839,44867,4686,24412,44745,17335,44869,17703)
Unknown column 'np.person' in 'where clause'