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 (30986,5259,6875,17657,44762,18981,44531,17092,13425,17351,44768,3,18894,39676,17756,36472,44837,44739,17848,6609,5388,8753,45421,18237,45516,5410,45043,44868,18446,16935,44689,13988,18301,37057,17114,44849,45262,44669,18794,44851,17335,34194,44858,44671,30135,4765,6862,28313,44685,5993,44873,44687,44745,18652,17009,45072,45277,24438,45561,45518,37267,13922,44863,6782,43800,44878,18996,17492,44640,17839)
Unknown column 'np.person' in 'where clause'