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 (44669,17657,4686,14622,17756,17237,44745,18572,36472,18286,44858,3,45421,45177,17556,28313,17835,45262,44640,10402,44764,17904,44674,45072,37057,17492,18652,18172,44775,45517,18894,43800,28530,5993,5259,44855,18900,30986,18719,6862,19057,17527,44894,5388,44689,13988,45515,17114,44531,45286,17278,18446,30135,45042,18688,44856,17755,44762,44768,24441,44867,44884,44848,6609,31354,22509,13,44687,44873,17092)
Unknown column 'np.person' in 'where clause'