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 (44768,37267,44863,45286,44858,18427,18185,44685,45346,17839,18996,45515,18286,18900,17771,18172,16935,45518,4686,18446,44861,17351,44884,39676,44745,18572,17527,18430,22509,30963,44878,5259,13922,24411,44640,17657,44711,17835,24441,17278,44856,5993,44687,17703,17237,44739,17601,17848,17114,24438,44836,13425,44765,18688,44689,45180,44767,30986,6875,45072,18042,44775,44870,6862,19078,24412,44853,18650,44875,44869)
Unknown column 'np.person' in 'where clause'