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 (18427,32454,5388,45346,44689,44848,19057,44767,17351,18648,44861,44687,17335,17835,45072,36472,30135,4765,18572,45277,17657,45262,24411,44867,44868,17839,28313,4686,18894,14622,17278,45229,17601,6782,44685,6609,16935,44878,13,44849,5993,44835,17756,18794,6875,44739,44869,44669,37267,44640,13922,45561,45051,8753,44863,5410,18237,44851,18900,44674,45286,17755,24412,13425,44856,10402,18446,44762,18353,44711)
Unknown column 'np.person' in 'where clause'