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,30963,37057,44894,22509,28313,18996,18353,45262,43800,44858,18301,6609,19057,45042,45277,18427,18172,18794,24412,17527,34194,44764,44837,44674,13922,17351,6862,17756,17237,24438,18279,44768,45518,44863,9341,17335,5410,44687,44855,44861,44845,44851,17835,18648,36472,18042,44854,13,17114,17848,44762,45286,44531,30135,44671,18237,17839,44689,18650,44865,45561,8753,44869,4765,16935,45180,14402,45072,44853)
Unknown column 'np.person' in 'where clause'