heres my code:
$sql = mysql_query(\"select c.name, c.address, c.postcode, c.dob, c.mobile, c.email, count(select * from bookings where b
Try changing the likes of...
count(select * from bookings where b.id_customer = c.id)
...to...
(select count(*) from bookings where b.id_customer = c.id)