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 (44856,18286,44764,44854,13,18996,44867,44845,18042,44836,44775,18172,5388,44855,14622,24412,17527,34194,17009,13988,44863,44870,44878,43800,24441,32454,44873,44848,44835,22509,44866,36472,18648,44858,45177,44894,45421,5410,4686,45567,18237,10402,3883,17756,6862,44868,18301,17771,28530,44861,30963,17657,18353,18900,3,24438,45286,17904,17351,44837,44531,14402,45517,44689,30986,45561,13922,39676,37267,17848)
Unknown column 'np.person' in 'where clause'