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 (18042,18688,19078,5259,45277,36472,28530,17981,17092,44858,44848,44687,17237,45518,4765,45346,14622,44855,44764,44878,45229,17848,17755,3,18996,6862,3883,18894,24411,18353,18446,18185,13988,32454,30135,5388,28313,44873,45567,45072,45516,17492,44836,17335,44884,44762,17657,44768,44689,39676,13425,18427,18172,37057,18301,6609,44854,24438,44531,17601,9341,14402,17556,17839,44845,45421,43800,45561,17114,44870)
Unknown column 'np.person' in 'where clause'