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 (18688,18286,31354,44669,44851,8753,44858,18648,45072,44865,45518,18981,44878,34194,37267,17009,17755,17657,30135,6875,44875,36472,44671,44866,14622,37057,3,44848,44863,45180,18301,17556,17351,44640,44531,22509,44854,45177,44894,19078,13,4765,44739,44687,5259,17237,44768,5993,3883,45561,18446,44689,13922,13988,28313,44762,44868,45277,17839,45346,45043,44856,44855,17527,16935,14402,17492,18794,17756,5388)
Unknown column 'np.person' in 'where clause'