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 (44674,45177,17335,3883,18172,44685,13425,14622,17237,44711,44531,37267,18900,44853,17009,45277,44836,45515,44669,18301,4765,44837,18353,45043,44855,44765,30135,10402,13988,28530,45286,45051,44768,24438,16885,17556,44869,31354,3,18719,44687,44878,45180,44739,17848,30963,22509,44849,6782,44866,45421,18794,44863,17835,18286,9341,18430,4686,17756,17278,6875,18688,17492,18446,17351,13922,17527,18237,32454,17904)
Unknown column 'np.person' in 'where clause'