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 (43800,18172,13988,44836,13425,44745,17771,44848,44849,44765,45277,17657,14622,44845,17492,44531,17755,44853,18286,18894,44689,45346,18279,44764,17703,3883,5388,17835,22509,18572,44865,44837,18353,45051,18652,17092,44775,17756,37267,19078,44875,17904,10402,4686,18446,17527,17009,45515,18648,44856,6862,17601,44863,44870,18900,16935,44869,45286,6875,30963,44767,9341,45561,17848,44739,45517,44855,18430,44687,44858)
Unknown column 'np.person' in 'where clause'