Sorry! Something's gone wrong. Please email us to let us know.
Copy and paste this entire page into your email.
To do this press Ctrl+A (select all) then Ctrl+C (copy). Then paste into your email.
Error: query_one_row: Single row query didn't get one row, got 0 on query: SELECT mp_id FROM pw_mp WHERE constituency = 'Berwick-upon-Tweed' and ('A J Beith' = CONCAT(first_name, ' ', last_name) OR 'A J Beith' = CONCAT(title, ' ', first_name, ' ', last_name)) ORDER BY entered_house DESC LIMIT 1
Date: Wed Feb 10 13:21:18 2010 IP: 38.107.191.89 URI: /mp.php?mpn=A_J_Beith&mpc=Berwick-upon-Tweed
#0 pw_handle_error(256, query_one_row: Single row query didn't get one row, got 0 on query: SELECT mp_id
FROM pw_mp
WHERE constituency = 'Berwick-upon-Tweed' and ('A J Beith' = CONCAT(first_name, ' ', last_name) OR 'A J Beith' = CONCAT(title, ' ', first_name, ' ', last_name))
ORDER BY entered_house
DESC LIMIT 1, /data/vhost/www.publicwhip.org.uk/docs/db.inc, 108, Array ([query] => SELECT mp_id
FROM pw_mp
WHERE constituency = 'Berwick-upon-Tweed' and ('A J Beith' = CONCAT(first_name, ' ', last_name) OR 'A J Beith' = CONCAT(title, ' ', first_name, ' ', last_name))
ORDER BY entered_house
DESC LIMIT 1))
#1 trigger_error(query_one_row: Single row query didn't get one row, got 0 on query: SELECT mp_id
FROM pw_mp
WHERE constituency = 'Berwick-upon-Tweed' and ('A J Beith' = CONCAT(first_name, ' ', last_name) OR 'A J Beith' = CONCAT(title, ' ', first_name, ' ', last_name))
ORDER BY entered_house
DESC LIMIT 1, 256) called at [/data/vhost/www.publicwhip.org.uk/docs/db.inc:108]
#2 DB->query_one_row(SELECT mp_id
FROM pw_mp
WHERE constituency = 'Berwick-upon-Tweed' and ('A J Beith' = CONCAT(first_name, ' ', last_name) OR 'A J Beith' = CONCAT(title, ' ', first_name, ' ', last_name))
ORDER BY entered_house
DESC LIMIT 1) called at [/data/vhost/www.publicwhip.org.uk/docs/decodeids.inc:278]
#3 get_mpid_attr_decode(DB Object ([link] => Resource id #11,[result] => Resource id #27), DB Object ([link] => Resource id #11,[result] => 1), , ) called at [/data/vhost/www.publicwhip.org.uk/docs/mp.php:50]