Some confusion here. Birth registered with mother Smith, so parents were John Lomas (b1823) and Sarah Smith (b1819). Baptised though with parents apparently John Lomas (b1799) and Elizabeth Malam (b1799), who were John Lomas's (b1823) parents! Baptism is clearly wrong.