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 (44869,18648,13922,44894,18286,18427,19078,44868,18042,17848,44837,45180,44767,19057,13988,30135,45421,44845,44689,44873,24438,30986,17009,45262,17657,44863,44875,9341,44853,18237,44866,14402,44848,18719,17703,45177,44858,44861,44854,17601,44836,3,17756,44775,18894,17904,22509,18279,44640,44739,18650,17492,17556,5259,37057,45229,18301,17237,31354,17351,28313,17835,44884,17527,32454,44531,18794,44745,6862,44687)
Unknown column 'np.person' in 'where clause'